The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Image Lighting up code. (Does Not Work)

2 posters

Go down

Image Lighting up code. (Does Not Work) Empty Image Lighting up code. (Does Not Work)

Post by Archangel Death God June 20th 2011, 4:00 am

I made this code for my site, when you wheel your mouse around the staff images. In the bottom, a rectangular rank image will appear with a name of the staff member, when you wheel your mouse around there image. For some reason the code does not work. Can somebody help? This is what I have so far:
Code:
<a href="http://naruto-l-d.forumotion.com/u1" onmouseover="swap(this,'showperson','Kratos')"><img src="http://img17.imageshack.us/img17/56/kratosip.png" alt="Head Administrator" border="0"></a>

<a href="http://naruto-l-d.forumotion.com/u8" onmouseover="swap(this,'showperson','Kira')"><img src="http://img5.imageshack.us/img5/2701/iana.png" alt="Administrator" border="0"></a>

<a href="http://naruto-l-d.forumotion.com/u11" onmouseover="swap(this,'showperson','Zero')"><img src="http://img62.imageshack.us/img62/7493/zerofg.png" alt="Administrator" border="0"></a>

<br><img src="http://img707.imageshack.us/img707/2931/blankn.png" name="showperson" align="center" border="0px" height="25px" width="120px">
<script type="text/javascript">

setswap("showperson",
  'Kratos', 'http://img233.imageshack.us/img233/5163/kratos2.png',
  'Kira',      'http://img8.imageshack.us/img8/1553/ian2z.png',
  'Zero,      'http://img546.imageshack.us/img546/2533/zero2.png',
//
</script>
avatar
Archangel Death God
Forumember

Male Posts : 44
Reputation : 0
Language : English

http://narutonation.narutorpg.org

Back to top Go down

Image Lighting up code. (Does Not Work) Empty Re: Image Lighting up code. (Does Not Work)

Post by Mike June 20th 2011, 4:03 am

amen dreamweaver.

You didn't close 'Zero, .

This is a fixed code.

Code:
<a href="http://naruto-l-d.forumotion.com/u1" onmouseover="swap(this,'showperson','Kratos')"><img src="http://img17.imageshack.us/img17/56/kratosip.png" alt="Head Administrator" border="0"></a>

<a href="http://naruto-l-d.forumotion.com/u8" onmouseover="swap(this,'showperson','Kira')"><img src="http://img5.imageshack.us/img5/2701/iana.png" alt="Administrator" border="0"></a>

<a href="http://naruto-l-d.forumotion.com/u11" onmouseover="swap(this,'showperson','Zero')"><img src="http://img62.imageshack.us/img62/7493/zerofg.png" alt="Administrator" border="0"></a>

<br><img src="http://img707.imageshack.us/img707/2931/blankn.png" name="showperson" align="center" border="0px" height="25px" width="120px">
<script type="text/javascript">

setswap("showperson",
  'Kratos', 'http://img233.imageshack.us/img233/5163/kratos2.png',
  'Kira',      'http://img8.imageshack.us/img8/1553/ian2z.png',
  'Zero',      'http://img546.imageshack.us/img546/2533/zero2.png',
</script>

not sure if it will work now or not
Mike
Mike
Hyperactive

Male Posts : 4255
Reputation : 471
Language : English, HTML, CSS
Location : Loveland, Colorado

Back to top Go down

Image Lighting up code. (Does Not Work) Empty Re: Image Lighting up code. (Does Not Work)

Post by Archangel Death God June 20th 2011, 4:32 am

It did not work. Thank you for your try though.
avatar
Archangel Death God
Forumember

Male Posts : 44
Reputation : 0
Language : English

http://narutonation.narutorpg.org

Back to top Go down

Image Lighting up code. (Does Not Work) Empty Re: Image Lighting up code. (Does Not Work)

Post by Mike June 21st 2011, 3:47 am

Should the

setswap("showperson

have a closing parenthesis, or maybe an apostrophe instead?
Mike
Mike
Hyperactive

Male Posts : 4255
Reputation : 471
Language : English, HTML, CSS
Location : Loveland, Colorado

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum