It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Partner Sites
Board index Programming HTML Forum

images

images

Postby Trey on Sun Jul 15, 2007 3:29 pm

how do you make, so that, say you have one image in your nav bar, say home, and its gray. but when you hover over it, it changes to a new image, a blue home image. like, heres an example


http://hwmodels.ovh.org/awesome website btw

anyways, see his navbar, how the images change from gray to orange, how do i do that
Image
User avatar
Trey
 
Posts: 18
Joined: Thu Jul 12, 2007 12:34 pm

Postby flabbyrabbit on Sun Jul 15, 2007 4:48 pm

This is the easiest script i have found, i havn't tested it and it seems abit strange but hopfully it will work:
Code: Select all
<A
    HREF="rollover_target.html"
    onMouseOver = "rollover('home')"
    onMouseOut  = "rollout('home')"
    ><IMG
    SRC="../graphics/home_out.gif"
    NAME="home"
    ALT="Home Page" BORDER=0
    HEIGHT=130 WIDTH=115
    ></A>
<SCRIPT TYPE="text/javascript">
<!--
setrollover("../graphics/home_over.gif");
//-->
</SCRIPT>


If it dosn't then just look through these,
Flabby Rabbit
User avatar
flabbyrabbit
500+ Club
 
Posts: 703
Joined: Thu Jan 25, 2007 2:10 pm
Location: Midlands, England

Postby Trey on Sun Jul 15, 2007 6:29 pm

where do i place the names of the original image and the new image :?:
Image
User avatar
Trey
 
Posts: 18
Joined: Thu Jul 12, 2007 12:34 pm

Postby flabbyrabbit on Mon Jul 16, 2007 12:25 pm

Code: Select all
<A
    HREF="rollover_target.html"
    onMouseOver = "rollover('home')"
    onMouseOut  = "rollout('home')"
    ><IMG
    SRC="../graphics/home_out.gif"  //ORIGINAL IMAGE
    NAME="home"
    ALT="Home Page" BORDER=0
    HEIGHT=130 WIDTH=115
    ></A>
<SCRIPT TYPE="text/javascript">
<!--
setrollover("../graphics/home_over.gif");  //ROLLOVER IMAGE
//-->
</SCRIPT>
User avatar
flabbyrabbit
500+ Club
 
Posts: 703
Joined: Thu Jan 25, 2007 2:10 pm
Location: Midlands, England

Postby Trey on Mon Jul 16, 2007 12:46 pm

thankyou soooo much
Image
User avatar
Trey
 
Posts: 18
Joined: Thu Jul 12, 2007 12:34 pm


Who is online

Users browsing this forum: No registered users and 5 guests