Board index   FAQ   Search  
Register  Login
Board index php forum :: HTML JavaScript

Roll over image display

Javascript coding ..

Moderators: macek, egami, gesf

Roll over image display

Postby kiwi » Mon Dec 13, 2004 1:44 am

i would like to do a web page like; when the mouse roll over a small image, a bigger image should display on top of it in the same page, any suggestion? thanks
kiwi
New php-forum User
New php-forum User
 
Posts: 124
Joined: Sun Feb 29, 2004 6:26 am

Postby ruturajv » Wed Dec 15, 2004 7:08 am

Google

Code: Select all
onmouseover = call function a

function a()
{
   imgObj.src = new source;
}
...
so .. on..
User avatar
ruturajv
php-forum Super User
php-forum Super User
 
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India

Postby Alexej Kubarev » Mon Jan 03, 2005 4:01 am

How to call:
Code: Select all
<img src="path/to.jpg" onMouseOver="a()" alt="whatever">


Just in case you dont know ;-)
User avatar
Alexej Kubarev
Site Admin
Site Admin
 
Posts: 2223
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län

Postby Redcircle » Mon Jan 03, 2005 1:56 pm

Personally I would have to say that Javascript IS NOT the way to do it.

Check out http://www.alistapart.com/articles/rollovers/

That's your answer.
User avatar
Redcircle
Moderator
Moderator
 
Posts: 830
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA


Return to JavaScript

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron