Results 1 to 4 of 4

Thread: need to make this from gif to swf please help

  1. #1
    Join Date
    May 2006
    Posts
    266
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default need to make this from gif to swf please help

    i have this script that shows gif i would like to make it show swf files here is the script

    Code:
    <html>
    <head>
    <title>Advertisement</title>
    <meta http-equiv="refresh" content="60">
    <script>
    function create() {
            this.width = ''
            this.height = ''
            this.src = '_blank'
            this.href = ''
            this.border = ''
            this.mouseover = ''
    }
    ads = new Array()
    for(var i=1; i<=10; i++) { ads[i] = new create() }
    
    ads[1].width = "468"
    ads[1].height = "60"
    ads[1].src = "http://cyberq.net.au/images/cq_spons.gif"
    ads[1].href = "http://cyberq.net.au"
    ads[1].border = "0"
    ads[1].mouseover = "Cyber Q Suports Queer FM"
    
    ads[2].width = "468"
    ads[2].height = "60"
    ads[2].src = "http://www.str8cams.com/str8cam/str8cambanner.jpg"
    ads[2].href = "http://links.verotel.com/cgi-bin/showsite.verotel?vercode=20196:9804000000780592"
    ads[2].border = "0"
    ads[2].mouseover = "Queer FM - Perth's No.1 Queer Station"
    
    ads[3].width = "468"
    ads[3].height = "60"
    ads[3].src = "http://queerfm.net/banner/show1.gif"
    ads[3].href = "http://queerfm.net"
    ads[3].border = "0"
    ads[3].mouseover = "Queer FM - Perth's No.1 Queer Station"
    
    
    ads[4].width = "468"
    ads[4].height = "60"
    ads[4].src = "http://queerfm.net/banner/ad1.gif"
    ads[4].href = "http://queerfm.net"
    ads[4].border = "0"
    ads[4].mouseover = "Queer FM - Perth's No.1 Queer Station"
    
    
    ads[5].width = "468"
    ads[5].height = "60"
    ads[5].src = "http://www.queerfm.net/banner/ad2.gif"
    ads[5].href = "http://queerfm.net"
    ads[5].border = "0"
    ads[5].mouseover = "Queer FM - Perth's No.1 Queer Station"
    
    ads[6].width = "468"
    ads[6].height = "60"
    ads[6].src = "http://www.queerfm.net/banner/queerfmfriends.gif"
    ads[6].href = "http://queerfmfriends.com"
    ads[6].border = "0"
    ads[6].mouseover = "Queer FM Friends - A place to meet"
    
    ads[7].width = "468"
    ads[7].height = "60"
    ads[7].src = "http://www.queerfm.net/banner/toolbar.gif"
    ads[7].href = "http://queerfm.com.au/qbar.html"
    ads[7].border = "0"
    ads[7].mouseover = "Queer FM Toolbar Download it today"
    
    ads[8].width = "468"
    ads[8].height = "60"
    ads[8].src = "http://sfx-images.mozilla.org/affiliates/Banners/468x60/rediscover.png"
    ads[8].href = "http://www.spreadfirefox.com/?q=affiliates&amp;id=162022&amp;t=53"
    ads[8].border = "0"
    ads[8].mouseover = "Queer FM Toolbar Download it today"
    
    ads[9].width = "468"
    ads[9].height = "60"
    ads[9].src = "http://www.queerfm.net/banner/tunin.gif"
    ads[9].href = "http://www.queerfm.com.au"
    ads[9].border = "0"
    ads[9].mouseover = "Queer FM Tune in today"
    
    ads[10].width = "468"
    ads[10].height = "60"
    ads[10].src = "http://www.queerfm.net/banner/skandalousnc.GIF"
    ads[10].href = "http://www.skandalousnc.com"
    ads[10].border = "0"
    ads[10].mouseover = "Skandalous The Newest Hottest Gay abd Lesbian Hang out"
    
    var n = Math.random() + ''
    n = parseInt(n.charAt(5))
    if(n >10) {
            n = n - 10
    }
    else if(n==0) {
            n = n + 19
    }
    n += ""
    
    var image = ads[n]
    var ad = ""
    ad += '<a href="' + image.href + '" \n'
    ad += 'onMouseOver="self.status=\'' + image.mouseover + '\'\;return true" \n'
    ad += 'onMouseOut="self.status=\'\'"> \n'
    ad += '<img src="' + image.src + '" width=' + image.width
    ad += '\n height=' + image.height + ' border=' + image.border
    </script>
    
    <base target="_blank">
    
    </head>
    <body leftmargin='0' topmargin='0' marginwidth='0' marginheight='0' style='background-color:transparent'>
    <SCRIPT language=JavaScript>
    <!-- hiding this script
    document.write(ad)
    // -->
    </SCRIPT>
    
    </body>
    </html>
    this is PHP

  2. #2
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    Using swf files requires an embed tag. It's not an image.
    - Mike

  3. #3
    Join Date
    May 2006
    Posts
    266
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    i know but can this script be changed so that it can handel swf files?

  4. #4
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Just try it. Never tested (or heard of the need before) but it sounds plausable.

    Just link to the .swf instead of the .gif

    You only have to embed Flash in HTML to show on the html page. Doing otherwise *may* cause errors in browsers if you have additional links in the movie that are not set up correctly.

    Doing this inside the script will require the viewer to have flash player and/or shockwave player installed on their computer.

    I will look into it deeper to see if I can find an instance of this being done though.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

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
  •