?
Solved

what's wrong in the onclick?

Posted on 2000-05-15
5
Medium Priority
?
177 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 16

Accepted Solution

by:
maneshr earned 60 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
Suggested Courses

764 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