Hej Kære Amino Jeg har lavet et lille link på et billede som giver en popup. Problemet er blot at den side som billedet ligger på, også ændres når man klikker på det. Hvad har jeg gjort forkert? Kode: <a href="javascript:window.open('http://www.workflow3d.com/Rotations/train_Lite_530x232/train_Lite_530x232_b.html','ObjectVR','width=530,height=232,resizable=0,status=0,titlebar=0,toolbar=0,top=200,left=200');"><img src="Grafik/SampleButton.png" width="128" height="106" border="0"></a> Se det online her: www.objectvr.dk/index2.html ...klik på den blå View Sample knap. På forhånd tak for hjælpen. Vh Brian |
Prøv at lad href være tomt, og put din JS kode ind i onclick.
Noget i stil med:
<a href=""
onclick="window.open('http://www.workflow3d.com/Rotations/
train_Lite_530x232/train_Lite_530x232_b.html','ObjectVR','
width=530,height=232,resizable=0,status=0,titlebar=0,toolbar=0,top=200,left=200');
return false;"><img src="/forums/EditPost.aspx/Grafik/SampleButton.png"
border="0" height="106" width="128" /></a>