Código:
se que tengo que poner dentro de esta funcion el codigo de lo que quiero que se muestre en la ventana<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <SCRIPT LANGUAGE="JavaScript"> <!-- Original: Rick Johnson ([email protected]) --> <!-- Web Site: http://rickjohnson.tripod.com --> <!-- This script and many more are available free online at --> <!-- The JavaScript Source!! http://javascript.internet.com --> function popupWin() { text = "<html>\n<head>\n<title>Pop Window</title>\n<body>\n"; text += "<a href='http://javascript.internet.com/new' target='_blank'><h2>New JavaScripts</h2></a>"; setTimeout('windowProp(text)', 3000); // delay 3 seconds before opening } function windowProp(text) { newWindow = window.open('','newWin','width=300,height=100'); newWindow.document.write(text); } // End --> </script> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Documento sin título</title> </head> <body onLoad="popupWin()"> </body> </html>
Código:
pero no me funciona... este es el codigo que quiero insertar..function popupWin() { text = "<html>\n<head>\n<title>Pop Window</title>\n<body>\n"; text += "<a href='http://javascript.internet.com/new' target='_blank'><h2>New JavaScripts</h2></a>"; setTimeout('windowProp(text)', 3000); // delay 3 seconds before opening }
Código:
gracias de antemano <object id="MMPlayer1" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" type="application/x-oleobject" height="30" width="400" align="absmiddle" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"> <param name="FileName" value="http://82.98.131.39:8012" /> <param name="ShowControls" value="0" /> <param name="ShowStatusBar" value="0" /> <param name="ShowDisplay" value="0" /> <param name="DefaultFrame" value="Slide" /> <param name="Autostart" value="true" /> <param name="volume" value="100" /> <embed src="http://82.98.131.39:8012" width="400" height="30" volume="100" autostart="True" loop="1" align="absmiddle" type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/download/default.asp" showcontrols="0" showdisplay="0" showstatusbar="0" > </embed> </object>