The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Image Lighting up code. (Does Not Work)

Go down

Image Lighting up code. (Does Not Work)

Post by Archangel Death God on 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>

Archangel Death God
Forumember

Male Posts : 44
Reputation : 0
Language : English

http://narutonation.narutorpg.org

Back to top Go down

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

Post by Mike on 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
avatar
Mike
Hyperactive

Male Posts : 4251
Reputation : 468
Language : English, HTML, CSS
Location : Loveland, Colorado

Back to top Go down

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

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

It did not work. Thank you for your try though.

Archangel Death God
Forumember

Male Posts : 44
Reputation : 0
Language : English

http://narutonation.narutorpg.org

Back to top Go down

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

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

Should the

setswap("showperson

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

Male Posts : 4251
Reputation : 468
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