Solved

what's wrong in the onclick?

Posted on 2000-05-15
5
167 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
Comment Utility
0
 
LVL 8

Expert Comment

by:jbirk
Comment Utility
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
Comment Utility
hmm....
i'll yru them both and see whice one is more convient.
0
 
LVL 8

Expert Comment

by:jbirk
Comment Utility
How is it coming?
0
 

Author Comment

by:clefairy_in_b5
Comment Utility
Comment accepted as answer
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

771 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

7 Experts available now in Live!

Get 1:1 Help Now