Click to See Complete Forum and Search --> : ur help on this script guys


Optimus_Primo
04-03-2003, 07:02 PM
hello guys...i want ur ideas on this script... it works well on IE but NOT on Netscape? tell me whats wrong with my script?

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Popup Window Image Preview</title>
<script language="javascript">
<!-- hide from old browsers
function selectWin(source,h1,w1){
newWin = window.open(source,"","height=" + h1 + ",width=" + w1 + ",top=10,left=0,scrollbars=yes");

}
// stop hiding -->
</script>
</head>

<body>

<p><a href="javascript:selectWin('c:/my documents/my webs/tables_collection.htm',400,750)"><img border="2" src="Table_1.gif" width="42" height="44"></a></p>

<p> </p>

</body>

</html>

jennAshton
04-03-2003, 08:11 PM
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Popup Window Image Preview</title>
<script language="javascript">
<!-- hide from old browsers
function selectWin(source,h1,w1){
newWin = window.open(source,"","height=" + h1 + ",width=" + w1 + ",top=10,left=0,scrollbars=yes");

}
// stop hiding -->
</script>
</head>

<body>

<p><a href="javascript:selectWin('c:/my documents/my webs/tables_collection.htm',400,750)"><img border="2" src="Table_1.gif" width="42" height="44"></a></p>

<p> </p>

</body>

</html>

Hello try taking out c:/my document .. and just use tables_collection.htm and it should work.

gil davis
04-03-2003, 08:13 PM
<a href="javascript:selectWin('c:/my documents/my webs/tables_collection.htm',400,750)">This is not a proper URL format. You have to use the "pipe" symbol rather than the colon, and the "file:" protocol. More like:<a href="javascript:selectWin('file:///C|/my documents/my%20webs/tables_collection.htm[/b]',400,750)">That should work for any browser.