Jump to content
xtreme_paranoid

Nak Wat Site Logo Script, Coding Probs

Recommended Posts

salam semua, aku nk mingtak tlg sket nih

aku nk wat site logo script dlm site aku..

contoh kat dlm site nih, belah kanan kat bawah..

http://www.dynamicdrive.com/dynamicindex4/logo.htm

aku ader coding die..kat sini :

http://www.dynamicdrive.com/dynamicindex4/staticlogo.js

tapi ade part yg aku x paham..

kat bahagian nih :

// 1) substitute 116 and 42 with the width and height of your logo image, respectively
var logowidth=116
var logoheight=42
var logoimage=[b]new Image(logowidth,logoheight)
[/b]
// 2) change the image path to reflect the path of your logo image
logoimage.src="../dynamic2.gif"

// 3) Change url below to the target URL of the logo
var logolink="http://dynamicdrive.com"

// 4) change the alttext variable to reflect the text used for the "alt" attribute of the image tag
var alttext="Dynamic Drive"

// 5) Finally, below variable determines the duration the logo should be visible after loading, in seconds. If you'd like the logo to appear for 20 seconds, for example, enter 20. Entering a value of 0 causes the logo to be perpectually visible. 
var visibleduration=12

// Optional parameters
var Hoffset=10 //Enter logo's offset from right edge of window (edit only if you don't like the default offset)
var Voffset=10 //Enter logo's offset from bottom edge of window (edit only if you don't like the default offset)

yang bold kat no 1 tuh aku nk ubah camne ek?

x berapa paham..

yang kat bold no 2 tuh pulak..

kene letak link gambar tu ek?

klu aku upload kat image shack..

letak url die ek?

Share this post


Link to post
Share on other sites

no 1 tu merangkumi panjang dan lebar image ko. dalam pixel.ko cuba maen-maen dengan no tu.ko akan nampak hasilnya

no 2 wat macam ko cakap tu. letak url imageshack

neway ko patot masok bahagian website ni..bukan kat sini

ps: napa orang selalu keliru antara java ngan js..uhuuu

Share this post


Link to post
Share on other sites

thanks. ^_^

tapi aku masih keliru ngan var logoimage..

camne nk edit kat bhg tu?

berbeza ek..?

sbb aku tgk coding gak..

sori2.mod tlg pindahkan

Edited by xtreme_paranoid

Share this post


Link to post
Share on other sites

tak perlu edit apa-apa.logo image tu dah declare sebagai new Image(ni function dlm js).var logoimage tu akan dipanggey dalam kod yang bawah yang dia tak bagi ko edit

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...