What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Open 2 IE Window's

Open 2 IE Window's
Author: Message:
MC Inferno
Veteran Member
*****

Avatar
www.mcinferno.co.uk

Posts: 1252
Reputation: 17
35 / Male / Flag
Joined: Jan 2004
O.P. Open 2 IE Window's
<a href="http://www.mcinferno.co.uk"><img src="http://img103.imageshack.us/img103/9824/mcinfernocoukkb9.jpg" border="0" alt="www.mcinferno.co.uk" /></a>

if i enter that on most pages, it should appear as a picture that you click and takes you to www.mcinferno.co.uk

... is there anyway of making it link to two diffrent pages...? I want it so it goes to my website, but also strats downloading a file immediatly, ie. the link would be link this:

http://www.mcinferno.co.uk/force-download.php?file=Has%20Got%20Me.mp3

I hope this makes sense. Thanks

Inferno

This post was edited on 09-10-2006 at 10:56 PM by MC Inferno.
09-10-2006 10:53 PM
Profile PM Web Find Quote Report
Chris4
Elite Member
*****

Avatar

Posts: 4461
Reputation: 84
32 / Male / Flag
Joined: Dec 2004
RE: Open 2 IE Window's
This might help you?
Twitter: @ChrisLozeau
09-10-2006 10:57 PM
Profile PM Find Quote Report
MC Inferno
Veteran Member
*****

Avatar
www.mcinferno.co.uk

Posts: 1252
Reputation: 17
35 / Male / Flag
Joined: Jan 2004
O.P. RE: Open 2 IE Window's
it didnt sorry. i dunno javascript etheir... i struggle with html
09-10-2006 11:03 PM
Profile PM Web Find Quote Report
Zephyr
Senior Member
****

Avatar
monster.rat

Posts: 950
Reputation: 26
34 / Male / Flag
Joined: Jan 2005
RE: Open 2 IE Window's
You can play around with the code to make it how you want, but something like this should work.

code:
<a href="http://www.mcinferno.co.uk"
onClick=window.open("http://www.mcinferno.co.uk/force-download.php?file=Has%20Got%20Me.mp3")><img src="http://img103.imageshack.us/img103/9824/mcinfernocoukkb9.jpg" border="0" alt="www.mcinferno.co.uk" /></a>

Note: in IE it may asked about blocked popups.

Thats the only way i can think of opening 2 windows with one link, but you could also do want you want in a slightly different way, by linking to your page by the image, then in the source your main page, you have an onload function to link to the music.

Not sure if this is the best way to do it, someone can correct it if im wrong - i'm not great with html/javascript.

code:
<body onload=(window.open("http://www.mcinferno.co.uk/force-download.php?file=Has%20Got%20Me.mp3")>


Both methods will work, but there might be a better way which i don't know.
[Image: rhcpsig38tj.png]
09-10-2006 11:53 PM
Profile E-Mail PM Find Quote Report
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: Open 2 IE Window's
opening windows not triggered by clicks will be blocked by most pop-up blockers, it might just squeeze trough when opening 2 windows from 1 function ala 1 click.

Or indeed using javascripts window.open function and html's own href function.
[Image: 1-0.png]
             
09-11-2006 12:41 AM
Profile PM Web Find Quote Report
rav0
Veteran Member
*****

Avatar
i have an avatar

Posts: 1419
Reputation: 29
34 / Male / Flag
Joined: Aug 2003
RE: RE: Open 2 IE Window's
quote:
Originally posted by Ezra
opening windows not triggered by clicks will be blocked by most pop-up blockers
Yep.
quote:
Originally posted by Ezra
using javascripts window.open function and html's own href function.
href isn't a function, but anyway, using an onclick event together with a normal link will usually mean that the onclick event works and the normal link doesn't.

The way I'd approach the problem is by having the link to the page that you want to show, then have a redirecting meta tag to the mp3.

Link to user (same as you posted):
code:
<a href="http://www.mcinferno.co.uk/"><img src="http://img103.imageshack.us/img103/9824/mcinfernocoukkb9.jpg" border="0" alt="www.mcinferno.co.uk"></a>
... in second page:
code:
<head>
<meta http-equiv="Refresh" content="0;url=http://www.mcinferno.co.uk/force-download.php?file=Has%20Got%20Me.mp3">
</head>

This post was edited on 09-11-2006 at 07:58 AM by rav0.
| [Image: dorsh] |

(\ /)
(O.o)
(> <)

This is Bunny. Copy Bunny into your signature to help him on his way to world domination
09-11-2006 07:57 AM
Profile E-Mail PM Web Find Quote Report
davidpolitis
Full Member
***


Posts: 371
Reputation: 16
Joined: Aug 2006
RE: Open 2 IE Window's
I'll have something for you in a moment.

EDIT: Finished! Don't get too excited because I could not exactly do what you wanted (considering I'm only 13), what it does is puts the two webpages in one webpage. Download the attached file.

.zip File Attachment: 2_links.zip (483 bytes)
This file has been downloaded 118 time(s).

This post was edited on 09-11-2006 at 11:34 AM by davidpolitis.
09-11-2006 11:03 AM
Profile PM Find Quote Report
MC Inferno
Veteran Member
*****

Avatar
www.mcinferno.co.uk

Posts: 1252
Reputation: 17
35 / Male / Flag
Joined: Jan 2004
O.P. RE: Open 2 IE Window's
cheers man, apprechate that
09-23-2006 08:27 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On