Results 1 to 5 of 5

Thread: slideshow with scripted images

  1. #1
    Join Date
    Jul 2006
    Location
    Antwerp, Belgium (Europe)
    Posts
    927
    Thanks
    121
    Thanked 2 Times in 2 Posts

    Default slideshow with scripted images

    Hey all,
    How can I make a fade-in slideshow of images that are created with scripts like:
    Code:
    <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>

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    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.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  3. #3
    Join Date
    Jul 2006
    Location
    Antwerp, Belgium (Europe)
    Posts
    927
    Thanks
    121
    Thanked 2 Times in 2 Posts

    Default

    Thanks for your reply !

    This is the fade-in script I am using (took credits away):
    Code:
    <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&#37; 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:

    Code:
    <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>
    Code:
    <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>

  4. #4
    Join Date
    Jul 2006
    Location
    Antwerp, Belgium (Europe)
    Posts
    927
    Thanks
    121
    Thanked 2 Times in 2 Posts

  5. #5
    Join Date
    Jul 2006
    Location
    Antwerp, Belgium (Europe)
    Posts
    927
    Thanks
    121
    Thanked 2 Times in 2 Posts

    Default

    I saw someone placing an iframe, placing the following inside:
    Code:
    <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 ?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •