Click to See Complete Forum and Search --> : script


ynghwy
06-25-2005, 07:50 AM
help anyone,

i have used the script as below in my htm-page.
The following error occurs.
When i click on link Marrat/De Sade it opens a new window, but with the hartstuk contents, so it opens hartstuk.htm instead mar.htm.

I want to click on links and each link opens an apart htm-page....

who can help...?

<script language="JavaScript"><!-- Begin
windowstatus = 0;
function gloss(marrat)
{aWindow = window.open("mar.htm","mar",
"toolbar=0,status=0,scrollbars=1,location=0,resize=0,menubar=0,width=600,height=450");
windowstatus = 1;
if (window.focus) {aWindow.focus()}}
function hidepic()
{if (windowstatus == 1){if (aWindow.location) {aWindow.close();windowstatus = 0;}}}
// End --></script>
<script language="JavaScript"><!-- Begin
windowstatus = 0;
function gloss(hartstuk)
{aWindow = window.open("hartstuk_info.htm","hartstuk_info",
"toolbar=0,status=0,scrollbars=1,location=0,resize=0,menubar=0,width=600,height=450");
windowstatus = 1;
if (window.focus) {aWindow.focus()}}
function hidepic()
{if (windowstatus == 1){if (aWindow.location) {aWindow.close();windowstatus = 0;}}}
// End --></script>

<a href="javascript:gloss('marrat')">Marat/De
Sade</a>
<a href="javascript:gloss('hartstuk')">Hartstuk</a>

reg,
ynghwy

davey
06-25-2005, 07:56 AM
this is not the java-script forum. please post there

ynghwy
06-25-2005, 08:18 AM
what do you mean????
here a copy of forum header:

Threads in Forum: Java Forum Tools Search this Forum
Rating Thread / Thread Starter Last Post Reverse Sort Order Replies Views

Sticky Thread Sticky: Troubleshooting Guide For Some Basic Java Problems.
Khalid Ali

06-16-2005 02:36 PM
by suren Go to last post
9 6,357

Sticky Thread Sticky: Java is Not JavaScript; JavaScript is Not Java
rsd

09-11-2004 02:37 AM
by PeOfEo Go to last post
6 5,412

You have 1 post(s) in this thread, last Today
Go to first new post script
ynghwy

Today 12:56 PM
by davey Go to last post
1 2

Database Type Question
davey

buntine
06-25-2005, 05:49 PM
Read what you have just pasted. It says "Java is Not JavaScript; JavaScript is Not Java".

You are asking a JavaScript question in the wrong forum. Java is nothing like JavaScript.

Regards.