Jump to content


Photo

Javascript Magnifier


  • Please log in to reply
2 replies to this topic

#1 aboyandhisrobot

aboyandhisrobot
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 05 April 2006 - 09:51 PM

hey, im using [a href=\"http://persistent.info/files/20040508.magnifier/\" target=\"_blank\"]http://persistent.info/files/20040508.magnifier/[/a] and i want to edit it a little to make the magnifier box into more of a rectangle shape. does anyone know how to do that? the code is in the source.

thanks!

#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 06 April 2006 - 02:01 PM

If you want your magnifier to be rectangler, change line 171 to the following:
this.style.width = (this.size+this.size*0.5) + "px";


#3 aboyandhisrobot

aboyandhisrobot
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 06 April 2006 - 02:29 PM

perfect....just what i needed thanks!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users