PDA

View Full Version : Popup



Win2Win
11th September 2005, 18:41
:icon_tong NO!!! Not that.....

I use Dreamweaver, I've forgotten the code to launch a popup after clicking a link to a set height & width :doh

Thanks.

GlosRFC
11th September 2005, 18:55
Do you mean this?



<SCRIPT TYPE="text/javascript">
<!--
function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
href=mylink;
else
href=mylink.href;
window.open(href, windowname, 'width=400,height=200,scrollbars=yes');
return false;
}
//-->
</SCRIPT>

Win2Win
11th September 2005, 19:03
Ya.....I'll have a play round.......I think it's Behaviours in Dreamweaver, but that'll do the trick...Thanks

Profit Seeker
11th September 2005, 19:12
Do you mean this?



<SCRIPT TYPE="text/javascript">
<!--
function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
href=mylink;
else
href=mylink.href;
window.open(href, windowname, 'width=400,height=200,scrollbars=yes');
return false;
}
//-->
</SCRIPT>

Does this sort of guff stay in your head? gosh

mathare
11th September 2005, 19:14
Does this sort of guff stay in your head? goshIf you know any programming language then code snippets definitely stay in your head, yeah.

It's only the same as being able to order a beer in French/German/Spanish etc

GlosRFC
11th September 2005, 19:22
You'd be surprised at the guff in my head :D

Profit Seeker
11th September 2005, 19:25
And you haven't wrote a program that gives us 200pts+ a year racing qualifiers yet? :yikes: :wink

mathare
11th September 2005, 19:37
And you haven't wrote a program that gives us 200pts+ a year racing qualifiers yet? :yikes: :winkIt's not that simple and by now you should know that!

Profit Seeker
11th September 2005, 19:45
:splapme