Solved

what's wrong in the onclick?

Posted on 2000-05-15
5
168 Views
Last Modified: 2010-04-09
<a onclick='window.open("http://click.linksynergy.com/fs-bin/stat?id=YcfcKmr6Sbg&offerid=12167.10000007&type=3&subid=0")' onclick='window.open("http://click.linksynergy.com/fs-bin/stat?id=YcfcKmr6Sbg&offerid=14931.10000001&type=3&subid=0")' onclick='window.open("http://click.linksynergy.com/fs-bin/stat?id=YcfcKmr6Sbg&offerid=14203.10000002&type=3&subid=0")' onclick='window.open("")' onclick='window.open("http://click.linksynergy.com/fs-bin/stat?id=YcfcKmr6Sbg&offerid=12167.10000007&type=3&subid=0")' onclick='window.open("index2.htm")' ><font size=8>ENTER</font></a>

what's worng with this? this should open 5 browsers.
or...
if you can suggest a script that opens the 4 adverstise browses when you enter to the site it will be more efficent.
0
Comment
Question by:clefairy_in_b5
  • 2
  • 2
5 Comments
 
LVL 16

Accepted Solution

by:
maneshr earned 15 total points
ID: 2811838
0
 
LVL 8

Expert Comment

by:jbirk
ID: 2812789
To open them when the site is entered add this to the header of your document (between the <HEAD> and </HEAD> tags:
<SCRIPT language="JavaScript">
<!--
window.open("http://click.linksynergy.com/fs-bin/stat?id=YcfcKmr6Sbg&offerid=12167.10000007&type=3&subid=0");
window.open("http://click.linksynergy.com/fs-bin/stat?id=YcfcKmr6Sbg&offerid=14931.10000001&type=3&subid=0");
window.open("http://click.linksynergy.com/fs-bin/stat?id=YcfcKmr6Sbg&offerid=14203.10000002&type=3&subid=0");
window.open("http://click.linksynergy.com/fs-bin/stat?id=YcfcKmr6Sbg&offerid=12167.10000007&type=3&subid=0");
// -->
</SCRIPT>

The above will open the pages while your page is still loading.  If you want it to happen right AFTER your page is loaded, then do it like this:
<SCRIPT language="JavaScript">
<!--
function launch() {
window.open("http://click.linksynergy.com/fs-bin/stat?id=YcfcKmr6Sbg&offerid=12167.10000007&type=3&subid=0");
window.open("http://click.linksynergy.com/fs-bin/stat?id=YcfcKmr6Sbg&offerid=14931.10000001&type=3&subid=0");
window.open("http://click.linksynergy.com/fs-bin/stat?id=YcfcKmr6Sbg&offerid=14203.10000002&type=3&subid=0");
window.open("http://click.linksynergy.com/fs-bin/stat?id=YcfcKmr6Sbg&offerid=12167.10000007&type=3&subid=0");
}
// -->
</SCRIPT>

Then in the body tag:
<BODY onload="launch()">

Otherwise, using the url click method, maneshr's provided the solution for you above.
-Josh
0
 

Author Comment

by:clefairy_in_b5
ID: 2813720
hmm....
i'll yru them both and see whice one is more convient.
0
 
LVL 8

Expert Comment

by:jbirk
ID: 2844461
How is it coming?
0
 

Author Comment

by:clefairy_in_b5
ID: 2844544
Comment accepted as answer
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now