Many of you would have noticed that in certain websites,especially the ones with Advts, when you move the cursor over a certain image, it changes to another eye-catchy image.Now you too can give that kind of an effect in your blog with pictures that are chosen by you.Still a bit hazy,.. just move the cursor over the images below
NOTE:- You must have Javascript enabled in the browser
- We shall be using two images to get this kind of the effect.
- There shall be slight modifcations in the code depending on
- Both Images have SAME dimentions (width & height)
- Both Images have DIFFERENT dimentions
- The Images LINK-TO another URL / site
- The images DONOT LINK-TO any other URL/Site
- Any combination of the above ..such as
- Both Images of the SAME dimetions AND link to another site
- Both Images of the SAME dimetions DONOT link to another site
- Both Images of the DIFFERENT dimetions AND link to another site
- Both Images of the DIFFERENT dimetions DONOT link to another site
Notice the change in the appearence of the cursor (“hand-shape” icon)
Notice the change in the appearence of the cursor (“hand-shape” icon)
Both Images of the SAME dimentions LINK-TO another site
Both Images of the SAME dimentions DONOT link to another site
Both Images of the DIFFERENT dimentions LINK-TO another site
Both Images of the DIFFERENT dimentions DONOT link to another site
- In the &IMG NAME=” tag make a note of the NAME specified
- Consider CODE:-4
<A onmouseover=”document.Different_size_SELF.src=’MOUSE-OVER-PIC-URL'” onmouseout=”document.Different_size_SELF.src=’NORMAL-PIC-URL'”><IMG SRC=”NORMAL-PIC-URL”
NAME=”Different_size_SELF” BORDER=”0″ ></A>
- The NAME of the < IMG tag is repeated on its corresponding <A onmouseover=”document.Different_size_SELF.src=’MOUSE-OVER-PIC-URL’ onmouseout=”document.Different_size_SELF.src=’NORMAL-PIC-URL'”>
- So if you plan to have more than 2 sets of such images , then its necessary that you have different NAME in the < IMG NAME =
- And use the corresponfing NAME only in the respective < A tag
Thank you for dropping by here..Hope you enjoyed the session.If you are very much satisfied , kindly leave a comment 😀
Deepa,
My blog archives is really not working well. When I select, it doesn’t go to that page.
Yes, Priya..I too noticed that..
Does this condition persist even after you deleted the archive elemnet – refreshBlog-add the archive element again..??
Do let me know
Deepa,
I am not clear with what you said.
Priya..
Try this
1.Delte the blog archive page element
2.Sign out of blogger & google
3.view the blog in the broweser
4.Sign in to blogger
5.back to template-pagelement
6.add the blog archive elemet
7. now view the blog & check if the archive is working or problamatic as before
ur presentation is wonderful i liked it,
Thank you goms..
glad to see you back
This only works for one image at a time on my blog. If I try this with two images, neither image will change on mouseover.
Sorry about that. I didn’t finish reading. I just forgot to use different image names.
Hi Mr.Anonymous
Glad you were able to fix it
🙂
does it work with animated .gif pics cuz either i dont get it or it doesnt wrk with my pic
Anon:
welcome..
It does work with animated gifs.. the pics of cheta and tweety are anigifs.. If you can give me the url of the pics may be i can have a look…
NB:- Personally i dont like to be answering some faceless Anonymous.. So please give yourself some name… any name.. Makes the conversation much easier