View Full Version : slideshow with scripted images
chechu
07-06-2007, 02:02 PM
Hey all,
How can I make a fade-in slideshow of images that are created with scripts like:
<script type="text/javascript">
var uri = 'http://impbe.tradedoubler.com/imp?type(img)g(16798378)a(1383984)' + new String (Math.random()).substring (2, 11);
document.write('<a href="http://clk.tradedoubler.com/click?p=3106&a=1383984&g=16798378" target="_blank"><img src="'+uri+'" border=0></a>');
</script>
thetestingsite
07-15-2007, 04:10 AM
Sorry for the late reply, but I guess I completely overlooked this thread. Anyways, I don't see why you wouldn't be able to, it just depends on what slideshow script you use. In this way, you would have to basically rewrite some variables, functions, etc; if they already exist in one of the scripts. Post the slideshow script you are trying to use and some of the [scripted] images you are trying to show in it, and I'll test it out and play around with it.
Hope this helps.
chechu
07-16-2007, 08:43 AM
Thanks for your reply !
This is the fade-in script I am using (took credits away):
<html>
<head>
<script language="JavaScript1.1">
<!--
var slidespeed=3000
var slideimages=new Array("../SP/SPvolvo.gif","../SP/SPdamier1.jpg")
var slidelinks=new Array("http://www.modern.be","http://www.hoteldamier.be")
var newwindow=1
var imageholder=new Array()
var ie=document.all
for (i=0;i<slideimages.length;i++){
imageholder[i]=new Image()
imageholder[i].src=slideimages[i]
}
function gotoshow(){
if (newwindow)
window.open(slidelinks[whichlink])
else
window.location=slidelinks[whichlink]
}
//-->
</script>
</head>
<body background="../img/icon/green.gif">
<table width=100% height=100%>
<tr><td align=center valign=middle>
<a href="javascript:gotoshow()"><img src="../SP/SPdamier2.gif" name="slide" border=0 style="filter:blendTrans(duration=3)"></a>
<script language="JavaScript1.1">
<!--
var whichlink=0
var whichimage=0
var blenddelay=(ie)? document.images.slide.filters[0].duration*1000 : 0
function slideit(){
if (!document.images) return
if (ie) document.images.slide.filters[0].apply()
document.images.slide.src=imageholder[whichimage].src
if (ie) document.images.slide.filters[0].play()
whichlink=whichimage
whichimage=(whichimage<slideimages.length-1)? whichimage+1 : 0
setTimeout("slideit()",slidespeed+blenddelay)
}
slideit()
//-->
</script>
</td></tr></table>
</body>
</html>
And these are some scripted linked images:
<a href="http://www.ardennes-etape.com/tradetracker/?campaignID=79&materialID=722&affiliateID=13836" target="_blank"><img src="http://ti.tradetracker.nl/79/722/13836/banner" width="234" height="60" border="0" /></a>
<script type="text/javascript">
var uri = 'http://impbe.tradedoubler.com/imp?type(img)g(16705918)a(1383984)' + new String (Math.random()).substring (2, 11);
document.write('<a href="http://clk.tradedoubler.com/click?p=56203&a=1383984&g=16705918" target="_blank"><img src="'+uri+'" border=0></a>');
</script>
chechu
07-21-2007, 09:09 AM
Help ?
chechu
07-23-2007, 01:41 PM
I saw someone placing an iframe, placing the following inside:
<html>
<head>
<META HTTP-EQUIV="Refresh" CONTENT="10;URL=http://common.ptg.be/bonplans/contest/nl1.php">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
</head>
<body>
<script type="text/javascript">
var uri = 'http://impbe.tradedoubler.com/imp?type(js)g(16718776)a(852381)' + new String (Math.random()).substring (2, 11);
document.write('<sc'+'ript type="text/javascript" src="'+uri+'" charset="ISO-8859-1"></sc'+'ript>');
</script>
</body>
</html>
So every page is redirected with meta's. Is this really the best way to do it ?
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.