Shoutbox

HTML code for pop up? - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: HTML code for pop up? (/showthread.php?tid=45144)

HTML code for pop up? by albert on 05-22-2005 at 10:15 PM

ok first.. I have frames

M     |    P
E     |    A
N     |    G
U     |    E

and now what I wanna do.. is that when some ppl click on a link.. well first - a pop up shows and at the same time another page shows on my frame page..

I searched on google, just couldnt find it..

anyone?
thx in advance


RE: HTML code for pop up? by Concord Dawn on 05-22-2005 at 10:17 PM

quote:
Originally posted by lp15
ok first.. I have frames

M     |    P
E     |    A
N     |    G
U     |    E

and now what I wanna do.. is that when some ppl click on a link.. well first - a pop up shows and at the same time another page shows on my frame page..

I searched on google, just couldnt find it..

anyone?
thx in advance

You'll need Javascript I think.
RE: HTML code for pop up? by Dempsey on 05-22-2005 at 10:21 PM

i think u'll need to do  something like

code:
document.frames(1).src="newpage.htm"
window.popup or whatever

RE: HTML code for pop up? by albert on 05-22-2005 at 10:23 PM

quote:
Originally posted by Dempsey
i think u'll need to do  something like
code:
document.frames(1).src="newpage.htm"
window.popup or whatever

ehh well can u give me the code? cuz I rlly dunt udnerstand.. the frame name is I1 and the page well just call it www.page.html

RE: HTML code for pop up? by Chris4 on 05-22-2005 at 10:24 PM

I don't think it's possible for 1 link to do 2 things.

So in other words, you want a link to go to a page in the iframe.
So the popup html code would have to be in page that's loading in the iframe.

I think :^)


RE: HTML code for pop up? by albert on 05-22-2005 at 10:25 PM

quote:
Originally posted by chris4
I don't think it's possible for 1 link to do 2 things.

So in other words, you want a link to go to a page in the iframe.
So the popup html code would have to be in page that's loading in the iframe.

I think :^)

Thats an idea! then I just need a pop up code for when the page loads, anyone has one?
RE: HTML code for pop up? by Zephyr on 05-22-2005 at 10:50 PM

Something like this should work

code:
<a href="page.html" target="I1" onClick=window.open("2.html")> text </a>


Sorry, if this is wrong, i'm not great with html.
RE: HTML code for pop up? by albert on 05-22-2005 at 10:57 PM

quote:
Originally posted by monster.rat
Something like this should work

code:
<a href="page.html" target="I1"
onClick=window.open("2.html")> text </a>




perfect! Thx a lot!
RE: HTML code for pop up? by Chris4 on 05-22-2005 at 11:03 PM

* Chris4 congratulates monster.rat

works perfectly :P

You do have to "allow blocked content" on IE if using SP2

other then that :P well done :P


RE: HTML code for pop up? by Zephyr on 05-23-2005 at 12:24 AM

Also if you want to change some parameters for the popup window, you can use this code.

code:
<a href="page.html" target="I1"
onClick="window.open('2.html','popup','width=200,height=300,toolbar=no,location=no,directories=no,status=no,menubar=no,
scrollbars=no,resizable=no,minimize=no,maximize=no,fullscreen=no,dependent=no,top=400,left=400')"> text</a>

Change the values of the parameters as you wish.

I split the code at scrollbars=no so that it fits the layout of this page better, but make sure there are no spaces between the properties of the window in your code.
RE: RE: HTML code for pop up? by rav0 on 05-23-2005 at 06:10 AM

quote:
Originally posted by chris4
* chris4 congratulates monster.rat


works perfectly :P

You do have to "allow blocked content" on IE if using SP2

other then that :P well done :P

Only for the popup does "blocked content" need to be allowed, the regular link will still work, and the pop code will be ignored.

I'm assuming that this is the code you are talking about:
quote:
Originally posted by monster.rat
code:
<a href="page.html" target="I1" onClick=window.open("2.html")> text </a>


RE: HTML code for pop up? by segosa on 05-23-2005 at 06:44 AM

The "blocked content" thing only appears when you test it locally I believe.


RE: RE: HTML code for pop up? by rav0 on 05-23-2005 at 07:50 AM

quote:
Originally posted by Segosa
The "blocked content" thing only appears when you test it locally I believe.

It appears whenever ActiveX (includes Flash Player), JavaScript or other acitve content is available, whether local or remote. Maybe this can be turned off in Internet Options, for specific zones.
RE: HTML code for pop up? by Tovrin on 05-02-2006 at 03:20 AM

sorry for opening an old thread.

I was researching a similar issue and this thread caught my attention.

i need to make an empty html page open another html doc at a specific size, then close itself.

I think I'm getting close, but somethings not working right.

quote:
<html>
<a href="javascript:void(window.open('http://www.help.com/help.html','width=799,height=495,scrollbars=no'));>
</a>
</html>

Is what I last tried with and without html tags, but thats my entire code.

this is very new to me, so please bear with my noobness. :P
RE: RE: HTML code for pop up? by rav0 on 05-02-2006 at 05:45 AM

Missing quotation mark ;).

code:
<a href="javascript:window.open('http://www.help.com/help.html','width=799,height=495,scrollbars=no');">link text</a>