...

View Full Version : java scripting problem



tnt.bomb
12-17-2004, 05:43 AM
trying to get this code to work but it doesn't seem to want to....any clues to what I am doing wrong?


<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> (http://clkuk.tradedoubler.com/click?p=18795&a=1041615&g=820234)'); </script>

please help sorry if this is in the wrong forumarea but wasn't sure where else

glenngv
12-17-2004, 05:56 AM
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?

tnt.bomb
12-17-2004, 05:59 AM
whats happening is that I get

[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

glenngv
12-17-2004, 06:28 AM
Is this the one you want to do?


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

tnt.bomb
12-17-2004, 06:35 AM
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...

tnt.bomb
12-17-2004, 06:49 AM
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 //-->



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum