Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Dec 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    java scripting problem

    trying to get this code to work but it doesn't seem to want to....any clues to what I am doing wrong?
    Code:
    <script language="javascript"> 
    var uri= 'http://impgb.tradedoubler.com/imp/img/820234/1041615?' + new String (Math.random()).substring (2, 11); document.write('<img src="'+uri+'" border=0>'); </script>
    please help sorry if this is in the wrong forumarea but wasn't sure where else
    Last edited by tnt.bomb; 12-17-2004 at 04:46 AM.

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    10,968
    Thanks
    0
    Thanked 236 Times in 233 Posts
    What is it that it doesn't do that it's supposed to do? I've tried the code and it displays an image.

    From what I can see, you're making sure that the displayed image is the updated image from the server and not from browser's cache. Is the displayed image not updated when you modified the image in the server?

  • #3
    New to the CF scene
    Join Date
    Dec 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    whats happening is that I get
    Code:
     [u*l="h**p://clkuk.tradedoubler.com/click?p=18795&a=1041615&g=820234" target="_blank"]Image shows(but so does the url part[/url]
    (all of that shows...)


    thats what I want it to do ..what ya said but for some reason on my end it doesn't...show you what I mean....

    here is my site...
    h**p://tnt-bomb.com/php/index.php
    Last edited by tnt.bomb; 12-17-2004 at 05:06 AM.

  • #4
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    10,968
    Thanks
    0
    Thanked 236 Times in 233 Posts
    Is this the one you want to do?
    Code:
    <script language="javascript"> 
    var adUri = "http://clkuk.tradedoubler.com/click?p=18795&amp;a=1041615&amp;g=820234";
    var uri= 'http://impgb.tradedoubler.com/imp/img/820234/1041615?' + new String (Math.random()).substring (2, 11); 
    document.write('<a href="'+adUri+'" target="_blank"><img src="'+uri+'" border="0" /></a>'); 
    </script>

  • #5
    New to the CF scene
    Join Date
    Dec 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thats it...thanks alot... thought i was missing something and didn't think the url way was going to cause so much problems...thanks alot...

  • #6
    New to the CF scene
    Join Date
    Dec 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    got error now in page I take it out and no error...but it works
    doesn't happen all the time but gets errors from line 26 char:1 error: syntax error code: 0
    and line 26 is //-->
    Last edited by tnt.bomb; 12-17-2004 at 05:53 AM.


  •  

    Posting Permissions

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