POV-Ray : Newsgroups : povray.general : Finally: my website! : Re: Finally: my website! Server Time
10 Aug 2024 05:23:08 EDT (-0400)
  Re: Finally: my website!  
From: David Fontaine
Date: 21 Feb 2000 22:30:51
Message: <38B20262.AB9981F8@faricy.net>
Andrew Clinton wrote:

> Wow, I've just went back and looked at the other images and the site
> really looks nice.  i guess I got caught the first time with just a few
> uploaded.  I love some of the misc images (and others) - I think this site
> could really shape out well.  Good luck.
>
> As for the rollovers, don't hesitate to copy my javascript - I just copied
> it from somewhere in the first place anyway. Its really easy to learn. But
> if you're satisfied with it the way it is, don't worry about it.

this should work. if it doesn't, try reformatting some stuff (put the image in
a table and move the Mouse tags out of the img block, stuff like that). (I was
having some trouble at first for some reason but I got it to work) Also it is
a good idea to check the browser for compatability;
browserVer=parseInt(navigator.appVersion); if(browserVer>=3) {...} else {...}

<HTML>
...
<BODY>
<script language="JavaScript">
   button_foo_on = new Image(height,width);
   button_foo_on.src = "bla";
   button_foo_off = new Image(height,width);
   button_foo_off.src = "bla";
   ...
   function ButtonOn(imgName)
   {
      document[imgName].src=eval(imgName+"on.src");
   }
   function ButtonOff(imgName)
   {
      document[imgName].src=eval(imgName+"off.src");
   }
</script>
...
<img src="bla" name="button_foo_" onMouseOver="ButtonOn('button_foo_')"
onMouseOut="ButtonOff('button_foo_')" ...>
...
</BODY>
</HTML>

--
___     ______________________________________________________
 | \     |_                 <dav### [at] faricynet> <ICQ 55354965>
 |_/avid |ontaine               http://www.faricy.net/~davidf/

"Sitting on a cornflake, waiting for the van to come" -Beatles


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.