Solved

what's wrong in the onclick?

Posted on 2000-05-15
5
171 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

856 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