[JS]Argument meegeven in de adresbalk voor new pag

Pagina: 1
Acties:

  • ReseTTim
  • Registratie: Juni 2000
  • Laatst online: 19-08 16:11

ReseTTim

Chocolate addicted

Topicstarter
index.html
code:
1
<a href="flash.html?what=4">[img]"cursus_thumbs/afb04.jpg"[/img]</a>

flash.html
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<html>
<head>
<script language="JavaScript">
function query()
{ 
    query = window.search.substring(1)
}
</script>
</head>
<body>
<script>
 document.write('object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="610" height="440"')
 document.write('param name=movie value="VaatlijdenGFX.swf')
 document.write(query)
 document.write('<embed src="VaatlijdenGFX.swf?what4" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="610" height="440"></embed>')
</script>
</body>
</html>

de bedoeling hiermee is dat je een flash argument opent in een nieuw venster. ik heb gehoord dat dit moest kunnuh.

Mijn profiel - Te koop: Overzicht van spullen..


  • Annie
  • Registratie: Juni 1999
  • Laatst online: 25-11-2021

Annie

amateur megalomaan

Met window.location.search.substring(1) krijg je alles na "?" terug.
In jouw voorbeeld dus "what=4".

Today's subliminal thought is:


  • Bosmonster
  • Registratie: Juni 2001
  • Laatst online: 29-08 19:47

Bosmonster

*zucht*

window.location.search werkt niet in alle browsers/OS's.

het effect is zo simpel zelf te emuleren.

  • crisp
  • Registratie: Februari 2000
  • Laatst online: 00:17

crisp

Devver

Pixelated

Op maandag 11 februari 2002 17:06 schreef Bosmonster het volgende:
window.location.search werkt niet in alle browsers/OS's.

het effect is zo simpel zelf te emuleren.
Welke browsers/OS's dan? window.location.search is toch redelijk rudimentair dacht ik...

Intentionally left blank