Click to See Complete Forum and Search --> : read link


Seletitic
07-09-2003, 04:44 PM
hi all, im a bit new to javascript and I have a big prob.
I have a banner on my website, wich my users need to click, in order to fund my server. But they won't click. So i want to define the link and put in a pop-up. The popup was no deal, but how can I extract a link from the banner? The case is, this link is everytime different....

This is the Script for my banner i got from my banner server:

<script>
document.write('<iframe scrolling=no frameborder=0 width=468 height=72 '+
'src="http://www.banner-exchange.nl/bx/468view.php3?b=iframe&id=seletitic"></iframe><br>');
if (document.layers) {document.write('<script language=javascript '+
'src="http://www.banner-exchange.nl/bx/468view.php3?id=seletitic"><\/script>');}
</script>

The source code from the first link is:
<html><body marginwidth=0 marginheight=0 leftmargin=0 topmargin=0>
<table border=0 cellspacing=0 cellpadding=0 width=100%><tr><td> <a href='http://www.banner-exchange.nl/bx/468click.php3?userid=seletitic&target=pechgehad' target="_blank">
<img width=468 height=60 src="http://www.euroklik.nl/sites/pechgehad.nl/banners/468x60_hcr.gif" ALT="http://sexotheek.pechgehad.nl" border=0></a></td></tr>
<tr><td align=right><a href="http://www.banner-exchange.nl/?seletitic" target=_blank><img src="468onder.gif" width=468 height=12 border=0 ALT="banner-exchange.nl"></a></td>
</tr></table>
</body></html>


The link in this last code is http://www.banner-exchange.nl/bx/468click.php3?userid=seletitic&target=pechgehad'
If I click this, i'll get my credits.......

I know it's difficult, is there somebody who can help me and save my site?

David Harrison
07-09-2003, 04:52 PM
There are two links in the page that is loaded in the iframe but I think that this is the one that needs to be clicked:

http://www.banner-exchange.nl/bx/468click.php3?userid=seletitic&target=zerox

Seletitic
07-09-2003, 04:54 PM
yeah, i know, but the prob is that every time somebody visits my site, that link is different. the thing different (i just saw now) is the TARGET. That has to be the same as the TARGET from the banner, but how can i do this??

David Harrison
07-10-2003, 05:31 AM
Why can't you just open the banner in a new window to draw attention to it.

Seletitic
07-10-2003, 06:19 AM
i've already tried that, but the wont click, but i need clicks, otherwise i cant fund my server!

David Harrison
07-10-2003, 08:19 AM
In that case why not find all of the address's that they link to from there .js file and use a Math.random() thing to open a random address in a pop-up window and close it after a few seconds.

Seletitic
07-10-2003, 11:39 AM
helloaa? isn't it clear now that I don't have any influance in wich banner it's gonna be? and only if its the SAME banner AND pop-up it counts! There are more then 10.000 sites member, so i can't sort all them all out!

David Harrison
07-10-2003, 12:56 PM
Hmm, I'm not sure what to do other than just pick a random banner and link and open that link in a new window every time. You could try asking this question in the php forum since it uses a php script to choose the banner.