What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Click- Image enlarge

Click- Image enlarge
Author: Message:
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: Click- Image enlarge
code:
// Image zoom script, used in features section and others

var ie=document.all
var ns6=document.getElementById&&!document.all

function ietruebody(){
return (document.compatMode && document.compatMode!="BackCompat" && !window.opera)? document.documentElement : document.body
}

function enlarge(which, e, position, imgwidth, imgheight){
if (ie||ns6){
crossobj=document.getElementById? document.getElementById("showimage") : document.all.showimage
if (position=="center"){
pgyoffset=ns6? parseInt(pageYOffset) : parseInt(ietruebody().scrollTop)
horzpos=ns6? pageXOffset+window.innerWidth/2-imgwidth/2 : ietruebody().scrollLeft+ietruebody().clientWidth/2-imgwidth/2
vertpos=ns6? pgyoffset+window.innerHeight/2-imgheight/2 : pgyoffset+ietruebody().clientHeight/2-imgheight/2
if (window.opera && window.innerHeight) //compensate for Opera toolbar
vertpos=pgyoffset+window.innerHeight/2-imgheight/2
vertpos=Math.max(pgyoffset, vertpos)
}
else{
var horzpos=ns6? pageXOffset+e.clientX : ietruebody().scrollLeft+event.clientX - 4
var vertpos=ns6? pageYOffset+e.clientY : ietruebody().scrollTop+event.clientY - 4
}
crossobj.style.left=horzpos+"px"
crossobj.style.top=vertpos+"px"

crossobj.innerHTML='<img alt="Loading image, please wait..." title="Click to close the image" src="'+which+'" onClick="closepreview()">'
crossobj.style.visibility="visible"
return false
}
else //if NOT IE 4+ or NS 6+, simply display image in full browser window
return true
}

function closepreview(){
crossobj.style.visibility="hidden"
}

code:
onClick="return enlarge('http://files.msgplus.net/images/features/emosounds.jpg',event)"


Stolen from the msgplus website :o

* Ezra Runs
[Image: 1-0.png]
             
08-15-2005 02:27 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Click- Image enlarge - by Supersonicdarky on 08-15-2005 at 02:17 PM
RE: Click- Image enlarge - by Veggie on 08-15-2005 at 02:20 PM
RE: Click- Image enlarge - by absorbation on 08-15-2005 at 02:20 PM
RE: RE: Click- Image enlarge - by Supersonicdarky on 08-15-2005 at 02:23 PM
RE: Click- Image enlarge - by Ezra on 08-15-2005 at 02:27 PM
RE: RE: Click- Image enlarge - by Supersonicdarky on 08-15-2005 at 02:28 PM
RE: Click- Image enlarge - by Concord Dawn on 08-15-2005 at 02:35 PM
RE: Click- Image enlarge - by Supersonicdarky on 08-15-2005 at 02:43 PM
RE: Click- Image enlarge - by Rubber Stamp on 08-15-2005 at 03:36 PM
RE: Click- Image enlarge - by CookieRevised on 08-15-2005 at 03:40 PM
RE: Click- Image enlarge - by Rubber Stamp on 08-15-2005 at 03:46 PM
RE: Click- Image enlarge - by Veggie on 08-15-2005 at 03:49 PM
RE: Click- Image enlarge - by Millenium_edition on 08-15-2005 at 03:57 PM
RE: RE: Click- Image enlarge - by CookieRevised on 08-15-2005 at 04:19 PM
RE: Click- Image enlarge - by Veggie on 08-15-2005 at 04:00 PM
RE: Click- Image enlarge - by Millenium_edition on 08-15-2005 at 04:23 PM
RE: Click- Image enlarge - by CookieRevised on 08-16-2005 at 10:22 AM
RE: Click- Image enlarge - by L. Coyote on 08-16-2005 at 11:40 AM
RE: Click- Image enlarge - by Rubber Stamp on 08-16-2005 at 04:48 PM
RE: Click- Image enlarge - by Ezra on 08-16-2005 at 04:54 PM
RE: Click- Image enlarge - by Rubber Stamp on 08-16-2005 at 04:57 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On