Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
timer based zoomin function
Old 12-30-2010, 06:54 AM timer based zoomin function
Junior Talker

Posts: 1
Trades: 0
dear all,

i have function(js) which zoomin/zoomout image inside button when mouse is placed on image(using onmouseover/onmouseout). now my question is i want to add timer say zoomin should start after 2sec how do i do that. and is that possible to have slow(or smooth) zoomin effect.

please do help

here is my code to zoomin/zoomout:

Code:
<script type="text/javascript">
			var nW,nH,oH,oW;
			
			function zoom(iWideSmall,iHighSmall,iWideLarge,iHighLarge,whichImage)
			{	
				
				oW=whichImage.style.width;oH=whichImage.style.height;
				if((oW==iWideLarge)||(oH==iHighLarge))
				{
					nW=iWideSmall;nH=iHighSmall;
				}
				else
				{
					nW=iWideLarge;nH=iHighLarge;
				}
				whichImage.style.width=nW;whichImage.style.height=nH;
				
			}
			
					
		</script>
rashmiy is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-30-2010, 07:42 AM Re: timer based zoomin function
Super Spam Talker

Posts: 879
Name: Paul W
Trades: 0
http://www.sourcecodeonline.com/list...ect_for_button
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE


*** New:
Please login or register to view this content. Registration is FREE
PaulW is online now
Reply With Quote
View Public Profile
 
Reply     « Reply to timer based zoomin function
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09503 seconds with 12 queries