View Single Post
  #183  
Old 08-28-2006, 08:50 AM
 
schawel schawel is offline
 

Advanced Member
  
Join Date: Apr 2006
Location: San Francisco
Posts: 78
 

Default Re: Detailed Image(s) Popup 2.1 [3.4.x-4.0.x]

This is the VIEWED SOURCE of the popup.



<script type="text/javascript">
<!--

// Initial Resize
var h = 187+40;
var w = 488+30;

// make sure size isn't bigger than users screen

if(h>=screen.height) {
h=screen.height-30;
}
if(w>=screen.width) {
w=screen.width;
}

window.resizeTo(w,h);

// Vars
var photos=new Array()
var photos_width=new Array()
var photos_height=new Array()
var which=0

// Images
photos[0]="/product_image.php?imageid=101"
photos_width[0]="488"
photos_height[0]="187"


var preloadedimages=new Array()
for (i=0;i<photos.length;i++){
preloadedimages[i]=new Image()
preloadedimages[i].src=photos[i]
}

function applyeffect(){
if (document.all && photoslider.filters){
photoslider.filters.revealTrans.Transition=Math.fl oor(Math.random()*23)
photoslider.filters.revealTrans.stop()
photoslider.filters.revealTrans.apply()
}
}

function playeffect(){
if (document.all && photoslider.filters)
photoslider.filters.revealTrans.play()
}

function backward(){
if (which>0){
which--
} else {
which=photos.length-1;
}
applyeffect()
document.images.photoslider.src=photos[which]
newWidth=parseInt(photos_width[which])+30;
newHeight=parseInt(photos_height[which])+85;
if(newHeight>=screen.height) {
newHeight=screen.height-30;
}
if(newWidth>=screen.width) {
newWidth=screen.width;
}
window.resizeTo(newWidth,newHeight)
playeffect()
}

function forward(){
if (which<photos.length-1){
which++
} else {
which=0;
}
applyeffect()
document.images.photoslider.src=photos[which]
newWidth=parseInt(photos_width[which])+30;
newHeight=parseInt(photos_height[which])+85;
if(newHeight>=screen.height) {
newHeight=screen.height-30;
}
if(newWidth>=screen.width) {
newWidth=screen.width;
}
window.resizeTo(newWidth,newHeight)
playeffect()
}
//-->
</script>



<body>

<a href="javascript:window.close();">

<script type="text/javascript">
document.write('[img]'+photos[0]+'[/img]')
</script>

</a>

</body>
</html>
__________________
X-Cart Gold v4.0.18
L.A.M.P model
MySQL 4.0.25-standard
PHP 4.3.10
DSEFU Mod
Reply With Quote