| View previous topic :: View next topic |
| Author |
Message |
Ash 1000+ Club

Joined: 03 Aug 2005 Posts: 1012 Location: England
|
Posted: Fri Jun 30, 2006 11:40 pm Post subject: Links in new windows |
|
|
I have this code:
| Code: |
<SCRIPT language=JavaScript>
<!--
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</SCRIPT> |
And to open new pages at a certain size it's
| Code: |
| <A HREF="javascript:popUp('url')">url nane</a> |
But it don't seem to want to work for offline or more than one link under another is this one of those codes that needs to be online? |
|
| Back to top |
|
 |
|
|
webmaster Site Admin

Joined: 17 Aug 2004 Posts: 3547 Location: Sweden
|
Posted: Sat Jul 01, 2006 9:43 am Post subject: Re: Links in new windows |
|
|
You must change the ('url') to for example ('popup.html') in this line:
| Code: |
| <A HREF="javascript:popUp('url')">url nane</a> |
|
|
| Back to top |
|
 |
Ash 1000+ Club

Joined: 03 Aug 2005 Posts: 1012 Location: England
|
Posted: Sat Jul 01, 2006 10:01 am Post subject: Re: Links in new windows |
|
|
I know that I did that so you know what goes where I was using:
| Code: |
| <A HREF="javascript:popUp('Videos/videopages/video11.html')">Barbarian Intro</a> |
|
|
| Back to top |
|
 |
Ash 1000+ Club

Joined: 03 Aug 2005 Posts: 1012 Location: England
|
Posted: Mon Jan 29, 2007 2:10 pm Post subject: Re: Links in new windows |
|
|
| This code does not work is there a way to do it in PHP? |
|
| Back to top |
|
 |
|