Solved

pop up

Posted on 1998-08-29
15
243 Views
Last Modified: 2013-11-28
hello,
Ok,this the ques: i want to have a banner on a page let's say 123.jpg and I want to have 2 pages pop up when some one clicks on it. the first browser page www.page1.com and the also in a different browser i would like www.page2.com to open also. How would the html look?
0
Comment
Question by:lonewolf
[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
  • 7
  • 7
15 Comments
 
LVL 4

Expert Comment

by:martinag
ID: 1837181
<A HREF="javascript:window.open('http://www.page1.com');window.open('http://www.page2.com')"><IMG SRC="123.jpg" BORDER="0"></A>

Martin
0
 
LVL 4

Expert Comment

by:martinag
ID: 1837182
I wrote a function which makes your job a little bit easier...
<SCRIPT LANGUAGE="JavaScript">
<!--
function openMultiple() {
  for (i=0;i<openMultiple.arguments.length; i++) {
    window.open(openMultiple.arguments[i]);
  }
}
// -->
</SCRIPT>

Then call it:
<A HREF="javascript:openMultiple('http://www.page1.com', 'http://www.page2.com')"><IMG SRC="123.jpg" BORDER="0"></A>

You may use as many arguments (URL's) as you want to.

Martin
0
 
LVL 10

Expert Comment

by:MasseyM
ID: 1837183
Read the above comments... People, post these as answers!

Please reject this and let somone from above send in the answer!
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 4

Expert Comment

by:martinag
ID: 1837184
MasseyM, why did you post an answer if all you have to say is that I should post one?

Martin
0
 

Author Comment

by:lonewolf
ID: 1837185
I beleive Martin should get the points. i have no idea what MasseyM is trying to say or do.
0
 
LVL 4

Accepted Solution

by:
martinag earned 100 total points
ID: 1837186
Thank you!

Martin
0
 

Author Comment

by:lonewolf
ID: 1837187
Also please tell me how to add the code to make it so when you pass the cursor over the link you see the message Page 2 instead of the address.  thanx
0
 

Author Comment

by:lonewolf
ID: 1837188
<A HREF="javascript:openMultiple('http://www.page1.com',
     'http://www.page2.com')"><IMG SRC="123.jpg" BORDER="0"OnMouseOver="window.status='Page 2';return true;"></A>

Is this how it should look?

0
 
LVL 4

Expert Comment

by:martinag
ID: 1837189
Just move your OnMouseOver to the link:
<A HREF="javascript:openMultiple('http://www.page1.com', 'http://www.page2.com')" OnMouseOver="status='Page 2';return true"><IMG SRC="123.jpg" BORDER="0"></A>

Martin
0
 

Author Comment

by:lonewolf
ID: 1837190
Hello,

Everything works except the mouse over. When passing the cursor over the image I see the mutiple java address' ect.........
????????
0
 
LVL 4

Expert Comment

by:martinag
ID: 1837191
Are you using the code in my last comment?

Martin
0
 

Author Comment

by:lonewolf
ID: 1837192
Yes,this is what I added to my page. It can be found at
http://www.excel.net/~clewis/beauty.htm
thanx


<SCRIPT LANGUAGE="JavaScript">
     <!--
     function openMultiple() {
       for (i=0;i<openMultiple.arguments.length; i++) {
         window.open(openMultiple.arguments[i]);
       }
     }
     // -->
     </SCRIPT>
<CENTER><A HREF="javascript:openMultiple('http://www.xpics.com/ass/ass.html?acb=acb137500-65000','http://www.excel.net/~clewis/beauty2.htm')" OnMouseOver="status='Enter';return
     true"><IMG SRC="enter02.gif" BORDER="0"></A><CENTER>

0
 
LVL 4

Expert Comment

by:martinag
ID: 1837193
There's definitely something's strange...If you watch the status bar carefully, you'll notice that it displays "Enter" when the mouse LEAVES the image (NN4.04).

Maybe you could try writing the whole OnMouseOver at one line.

Martin
0
 

Author Comment

by:lonewolf
ID: 1837194
Example Please :-)
0
 

Author Comment

by:lonewolf
ID: 1837195
Ok,that was it.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
adwords from google 1 31
How do I update select listbox after search 2 51
isNaN issue on the Table input text 2 41
Error Handler 8 42
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
An overview of how to create reports in Adobe Analytics (formerly Omniture Site Catalyst) using pageNames, events, eVars and props. This video will show you how to install the Omniture Debugger tool so can see (and test) what is being passed int…

739 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