Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Picture Enlargement, javascript code
conret
post Feb 5 2006, 03:03 AM
Post #1


Advanced Member
*******

Group: Members
Posts: 125
Joined: 13-November 05
Member No.: 14,232



ok i have alot of pictures on my site and i need a way in which i can hold my mouse over the pictures and the picture can get bigger. I know it will be some kind of javascript or flash trick can anyone explain the prosess for it?
Go to the top of the page
 
+Quote Post
couture threat
post Feb 5 2006, 03:58 AM
Post #2


Newbie
*

Group: Members
Posts: 8
Joined: 5-February 06
Member No.: 18,223



QUOTE
<script language="javascript">

// © 2002 Premshree Pillai
// http://www.qiksearch.com
// premshree@hotmail.com
// Loaction of this script :
// http://www.qiksearch.com/javascripts/image_zoom_out.htm
// Visit http://www.qiksearch.com/javascripts.htm for more FREE scripts

document.write('<div id="izo_div" style="position:absolute; top:130; left:190"><img src="izo.gif" border="3" bordercolor="#000000" name="izo" alt="Image Zoom Out" onclick="java script:setTimeout("zoom_out()",1000);" style="cursor:hand"></div>');

img_act_width = izo.width;
img_act_height = izo.height;

i=1;

function zoom_out()
{
if(izo.width==0)
{
izo.border=0;
}
if(izo.width!=0)
{
izo.width-=i;
izo.height=Math.round(izo.width*((img_act_height)/(img_act_width)));
setTimeout("zoom_out()",1);
i+=1;
}
}

</script>

That might be it.
Go to the top of the page
 
+Quote Post
conret
post Feb 5 2006, 09:27 PM
Post #3


Advanced Member
*******

Group: Members
Posts: 125
Joined: 13-November 05
Member No.: 14,232



thank you for the script
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Java Script Drop Down Menu With Css(2)
  2. Javascript Slideshow Tutorial(4)
  3. Javascript Close Window(15)
  4. One Click Copy And Paste To Clipboard(5)
  5. Adding Rows & Columns In Html Table Using Javascript(1)
  6. I'm Making My Own Javascript Only Rpg :d(7)
  7. What's The Relationship Between Javascript And Java(5)
  8. Javascript : No Right Click Script !@(12)
  9. Hiding <div> Boxes With Javascript(8)
  10. How Do You Make A Javascript Calculator?(11)
  11. Great Javascript Script Source(2)
  12. Ajax: Achieve Ajax Program In 5 Lines Of Code!(1)
  13. Web Applications: J2ee Or Javascript/css/html(1)
  14. Opera Browser + Javascript + Embeded Sound(0)
  15. Javascript - What's Your Browser?(3)
  1. Javascript Events Not Working For Ie(6)
  2. I`m New To Javascript.(5)
  3. Ajax Code Need Help Debugging.(9)
  4. Special Wii Javascript(2)
  5. Javascript Error(2)
  6. Is It Possible To Create A Web Based Mmo In Javascript?(4)
  7. Capturing Username Of Computer(3)
  8. Javascript Object Node Referencing Help(5)
  9. Flash And Javascript Interaction(1)
  10. Document.write & Noscript Questions (javascript)(1)
  11. Java Vs Javascript(11)
  12. Adjusting Rows/cols Of Frames In Frameset Using Javascript Is Not Working In Firefox 3 Is Not Working(4)
  13. Need Help With Javascript Drag And Drop Script(2)


 



- Lo-Fi Version Time is now: 11th October 2008 - 04:31 AM