Jump to content
xisto Community
Sign in to follow this  
ebbinger_413

Help Creating Javascript Banner

Recommended Posts

hey i was wondering if anyone could help me create a banner...gonna be used for web site...that is interactive.... the banner we got so far is just two pictures...one of a d and one of two s's spelling DSS dirty smelly shorts....does anyone know how to creat a java script that will allow the pictures to have a mouse over effect so that when you move your mouse over the d it will slide over and say dirty same with the two s's.... and when your mouse moves off of it...it slides back to just say d or ss or w/e....

Edited by microscopic^earthling (see edit history)

Share this post


Link to post
Share on other sites

Here is the code for an on mouseover and onmouseout effect for an image...

 

<a href="YOUR SITE LINK HERE" onmouseover="image.src='YOUR SECOND IMAGE'S URL'"

onmouseout="image.src='YOUR FIRST IMAGE'S URL'">

<img src="YOUR IMAGE URL HERE" name="image" width="W" height="H" border="B">

 

You can change the areas that are in italics. Just make sure that your image's name and the name you use in the onmouseover and onmouseout properties are the same. Hope that's what you were looking for. Oh yeah, the <a href=" "> at the beginning is if you want to link your image back to your site.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.