iWebBuddy.com
Thanks for visiting iWebBuddy.com ,

If it is your first time here, please enjoy reading the tutorials and articles. If you can not find what your looking for, then you can join the forums by registering so you will be able to log into the forums and ask for support for website development, request graphic designing services, promote your website, request website reviews, get advice from others about your website or be an active member of the community to help iWebBuddy.com grow.

After you register an account, you are required to log in. Once you log into your account, you will have more previliges. You will be able to post on the forums, send private messages and view the Chatbox ( link ) at the bottom of the forums.

Have a nice day.


Hover link to refresh image

Post new topic   Reply to topic

View previous topic View next topic Go down

Hover link to refresh image

Post by Marc on Sat Oct 31, 2009 8:40 pm

This tutorial will help you refresh an image everytime you use your mouse to hover over a link.

First, add this to your head tags.

Code:
<script language="javascript">
<!--
button00 = new Image
button01 = new Image
button02 = new Image
button03 = new Image

button00.src="http://www.iwebbuddy.com/users/2613/16/40/39/album/th/nopic10.png"
button01.src="http://i35.tinypic.com/sfiek7.png"
button02.src="http://i34.tinypic.com/o7vqrn.gif"
button03.src="http://www.iwebbuddy.com/users/2613/16/40/39/album/th/search10.png"
-->
</script>


You can replace the image links with your picture links, Wink

Next, add this for the content ( not in your head tags ) :

Code:

<img src="http://" name="button">  <br> <br>

<a onmouseover="document.button.src=button01.src" onmouseout="document.button.src=button00.src"
href="http://www.iwebbuddy.com/"><small>iWebBuddy.com Number 1</small></a>

<br> <br>

<a onmouseover="document.button.src=button02.src" onmouseout="document.button.src=button00.src"
href="http://www.iwebbuddy.com/"><small>iWebBuddy.com Number 2</small></a>

<br> <br>

<a onmouseover="document.button.src=button03.src" onmouseout="document.button.src=button00.src"
href="http://www.iwebbuddy.com/"><small>iWebBuddy.com Number 3</small></a>


You can replace the links and text that will be used for hovering from the above code box.

Preview Example :
This is a web page you can use to view this tutorial in action, Very Happy

>> Click Here To Preview The Example

Marc
Administrator
Administrator

Posts: 340
iCoins: 691

View user profile http://www.iwebbuddy.com

Back to top Go down

View previous topic View next topic Back to top


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