Are you a Google Analytics enthusiast?
More SEO Content
Posted 11 December 2003 - 03:06 PM
The issue I have right now is that the onclick image does not appear fast enough to be seen on three buttons (see the page I posted in site review). I am going to assume that if the images are preloaded it will work better. So, how do I preload an image and then what is the appropriate coding for the rollover (onfocus and onblur did not seem to work) and active links?
Posted 11 December 2003 - 03:11 PM
In the head, I put:
image1 = new Image();
image1.src = "images/button/home2.gif";
image2 = new Image();
image2.src = "images/button/fact2.gif";
image3 = new Image();
image3.src = "images/button/gallery2.gif";
And then in the code for each of those buttons I have
There are probably better scripts, but this works for me.
<a onmouseover="image1.src='http://www.domain.com/images/button/home2.gif';" onmouseout="image1.src='http://www.domain.com/images/button/home1.gif';" href="http://www.domain.com/">
<img name="image1" border="0" src="http://www.domain.co...tton/home1.gif" alt="Home Page blah blah" width="150" height="30"></a></td>
Posted 11 December 2003 - 08:40 PM
Please see this link it has very good information about Preload images and mouseover features, http://www.virtually...nt.com/buttons/
When you use current versions of Dreamweaver or frontpage they give build in features to implement mouseover features without writing any sort of code and that code generated doesnt look bad and it is clean according to me so try using dreamweaverMX will be easy for you,
Posted 12 December 2003 - 07:14 AM
Has anyone tried this?
Posted 12 December 2003 - 11:42 AM
if you must use device-dependent attributes, provide redundant input mechanisms (i.e., specify two handlers for the same element):
* Use "onmousedown" with "onkeydown".
* Use "onmouseup" with "onkeyup"
* Use "onclick" with "onkeypress"
OK, I get the end results but how do I do it?
Posted 12 December 2003 - 01:50 PM
Posted 12 December 2003 - 07:47 PM
That's an interesting idea. It would have been nice if they'd shown a working example, though. Obviously, you'd need to specify the image width and height, and I would have thought that that would cause the browser to squeeze the entire image (all three parts of it) into that size. But I've been wrong once or twice before
Has anyone tried this?
It's linked as example from the tutorial.
Edited by Jill, 12 December 2003 - 07:55 PM.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users