Adding a JavaScript Image Link

Trying to add this to the text advert block

I have to split it into 2 boxes as the limit on each box (paragrah) is too small. It doesn't display the ad (which works fine when inserted in a support page)

Also problem cutting and pasting into the text ad boxes.

RE: Adding a JavaScript Image Link

You can remove the JavaScript code and use a direct URL link as follows. This code is short enough to fit in a single Advertisement Text box.

Your Original JavaScript code:

<script type="text/javascript">
var uri = 'http://impgb.tradedoubler.com/imp?type(img)g(16662510)a(1378504)' + new String (Math.random()).substring (2, 11);
document.write('<a href="http://clkuk.tradedoubler.com/click?p=3412&a=1378504&g=16662510" target="_BLANK"><img src="'+uri+'" border=0></a>');
</script>

New Code - A Direct URL link:

<a href="http://clkuk.tradedoubler.com/click?p=3412&a=1378504&g=16662510" target="_BLANK"><img src="http://hstus.tradedoubler.com/file/3412/march07/afterad_120x60.gif" border=0></a>

Yields:

By the way, you can only cut and paste a text string that contains less than 256 characters into a dialog box. If your text string contains more than 256 characters, the paste command will not execute.

Sam Raheb
XLEcom Program Developer

Sorry still doesn't display

Sorry still doesn't display anything

Phil

Sam Raheb
XLEcom Program Developer

RE: Sorry still doesn't display

I tested this method and it does work. You just may have not entered in the code correctly.

Follow the procedure below:

Add the single line of New Code to the Advertisement Text box as shown in the dialog box screen shot image below. Also, change the General Properties so that only the Border Color is used and that it matches the Background color of your site. In this example, the Border Color is white.

New Code - A Direct URL link:

<a href="http://clkuk.tradedoubler.com/click?p=3412&a=1378504&g=16662510" target="_BLANK"><img src="http://hstus.tradedoubler.com/file/3412/march07/afterad_120x60.gif" border=0></a>

The screen shot below shows the published results:

Sam Raheb
XLEcom Program Developer

My fault

Hi Sorry yes it DOES work now. Thanks very much for your help so far

Phil

Sam Raheb
XLEcom Program Developer