Avatar billede gruppe422 Nybegynder
08. januar 2003 - 22:29 Der er 3 kommentarer og
1 løsning

Hjælp til indsættelse af javascript....

Hejsa

Er der nogle der kan hjælpe mig med at indsætte dette popup script i min index.htm

code til popup:

<script language="JavaScript">
<!-- Gem koden for gamle browsere

function PopWin(url,h,w) { var ww = 480, wh = 340, leftPos = null, topPos = null;

IE=(document.all)?true:false;
var wh = (IE)?document.body.clientHeight : window.innerHeight;
var ww = (IE)?document.body.clientWidth : window.innerWidth;

if (top.screen){
  if (screen.width){
    leftPos = Math.round((ww-w-10)/2);
    topPos = Math.round((wh-h-29)/2);
  } else {
    leftPos = 50
    topPos = 50
  }
}

popupWin = window.open(url, 'popup', 'height=' + h + ',width=' + w + ',top=' + topPos + ',left=' + leftPos + '')
}
// -->
</script>
</head>

<body onLoad="PopWin('udsalg.htm',294,635);">
</body>

</html>

------------------------------

indeh.htm:



<html>

<head>
<meta name="Copyright" content="????????????????????????????????">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>??????????????????????????</title>
<csimport user="1.psd" occur="18"></csimport>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
  if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
</head>

<body leftmargin="0" topmargin="0" onLoad="MM_preloadImages('images/img_18_o.gif','images/img_19_o.gif','images/img_20_o.gif','images/img_21_o.gif','images/img_25_o.gif','images/img_26_o.gif','images/img_27_o.gif','images/img_28_o.gif')" SCROLL="no">
<div id="Layer4" style="position:absolute; width:133px; height:122px; z-index:4; left: 694px; top: 78px;">
  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="118" height="108">
    <param name="movie" value="images/flare3.swf">
    <param name="quality" value="high">
    <PARAM NAME=wmode VALUE=transparent>
    <embed src="images/flare3.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="118" height="108"></embed></object>
</div>
<div id="Layer3" style="position:absolute; width:129px; height:117px; z-index:3; left: 273px; top: 360px;">
  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="118" height="108">
    <param name="movie" value="images/flare2.swf">
    <param name="quality" value="high">
    <PARAM NAME=wmode VALUE=transparent>
    <embed src="images/flare2.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="118" height="108"></embed></object>
</div>
<div id="Layer2" style="position:absolute; width:126px; height:115px; z-index:2; left: 316px; top: 54px;">
  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="118" height="108">
    <param name="movie" value="images/flare1.swf">
    <param name="quality" value="high">
<PARAM NAME=wmode VALUE=transparent>
    <embed src="images/flare1.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="118" height="108"></embed></object>
</div>
<div id="Layer1" style="position:absolute; width:67px; height:36px; z-index:1; left: 643px; top: 422px;">
  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="60" height="30" align="top">
    <param name="movie" value="images/player.swf">
    <param name="quality" value="high">
<PARAM NAME=wmode VALUE=transparent>
    <embed src="images/player.swf" width="60" height="30" align="top" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object>
</div>
<table livesrc="1.psd" border=0 cellpadding=0 cellspacing=0 livesettings="file:///C:/Documents%20and%20Settings/momme/Desktop/000000000000000000000/test6/1.data_/1.html" occur="18">
            <tr>
                <td><img src="1.data_/images/spacer.gif" width=321 height=1></td>
                <td><img src="1.data_/images/spacer.gif" width=24 height=1></td>
                <td><img src="1.data_/images/spacer.gif" width=76 height=1></td>
                <td><img src="1.data_/images/spacer.gif" width=18 height=1></td>
                <td><img src="1.data_/images/spacer.gif" width=78 height=1></td>
                <td><img src="1.data_/images/spacer.gif" width=34 height=1></td>
                <td><img src="1.data_/images/spacer.gif" width=32 height=1></td>
                <td><img src="1.data_/images/spacer.gif" width=44 height=1></td>
                <td><img src="1.data_/images/spacer.gif" width=75 height=1></td>
                <td><img src="1.data_/images/spacer.gif" width=37 height=1></td>
                <td><img src="1.data_/images/spacer.gif" width=269 height=1></td>
                <td><img src="1.data_/images/spacer.gif" width=272 height=1></td>
            </tr>
            <tr>
               
    <td sliceid="0AB62347"><img src="images/img_01.jpg" width=321 height=72></td>
               
    <td colspan=9 sliceid="0A61C3A8"><img src="images/img_02.jpg" width=418 height=72></td>
               
    <td sliceid="0C88A0E4"><img src="images/img_03.jpg" width=269 height=72></td>
               
    <td sliceid="1B93092E"><img src="images/img_04.jpg" width=272 height=72></td>
            </tr>
            <tr>
               
    <td sliceid="0B066876"><img src="images/img_05.jpg" width=321 height=87></td>
               
    <td colspan=9 sliceid="0A3D5906"><img src="images/img_06.jpg" width=418 height=87></td>
               
    <td sliceid="0CEF35D4"><img src="images/img_07.jpg" width=269 height=87></td>
               
    <td sliceid="1BBB0AF2"><img src="images/img_08.jpg" width=272 height=87></td>
            </tr>
            <tr>
               
    <td sliceid="0B474A81"><img src="images/img_09.jpg" width=321 height=96></td>
               
    <td colspan=9 rowspan=2 sliceid="390D4079" background="images/img_10.jpg">&nbsp;<iframe src="/nyheder/index.asp" name="frame1" width="414" height="171" border="0" frameborder="0"></iframe></td>
               
    <td sliceid="0E666735"><img src="images/img_11.jpg" width=269 height=96></td>
               
    <td sliceid="1BE8F2B7"><img src="images/img_12.jpg" width=272 height=96></td>
            </tr>
            <tr>
               
    <td sliceid="0B8518B8"><img src="images/img_13.jpg" width=321 height=85></td>
               
    <td sliceid="10C00B9B"><img src="images/img_14.jpg" width=269 height=85></td>
               
    <td sliceid="1C1FD451"><img src="images/img_15.jpg" width=272 height=85></td>
            </tr>
            <tr>
               
    <td rowspan=2 sliceid="0BFACF25"><img src="images/img_16.jpg" width=321 height=46></td>
               
    <td sliceid="3D003203"><img src="images/img_17.jpg" width=24 height=23></td>
               
    <td colspan=2 sliceid="02443A05"><a href="#" onclick="top.frames['frame1'].location.href='/nyheder/index.asp'" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image64','','images/img_18_o.gif',1)"><img src="images/img_18.gif" name="Image64" width="94" height="23" border="0"></a></td>
    <td sliceid="028C8BFB"><a href="#" onclick="top.frames['frame1'].location.href='butik.htm'" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image65','','images/img_19_o.gif',1)"><img src="images/img_19.gif" name="Image65" width="78" height="23" border="0"></a></td>
    <td colspan=2 sliceid="02D3D755"><a href="#" onclick="top.frames['frame1'].location.href='team.htm'" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image66','','images/img_20_o.gif',1)"><img src="images/img_20.gif" name="Image66" width="66" height="23" border="0"></a></td>
    <td colspan=2 sliceid="03266B63"><a href="#" onclick="top.frames['frame1'].location.href='download.htm'" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image67','','images/img_21_o.gif',1)"><img src="images/img_21.gif" name="Image67" width="119" height="23" border="0"></a></td>
    <td sliceid="035B3FC5"><img src="images/img_22.jpg" width=37 height=23></td>
               
    <td rowspan=2 sliceid="111A0F94"><img src="images/img_23.jpg" width=269 height=46></td>
               
    <td rowspan=2 sliceid="1C8FE664"><img src="images/img_24.jpg" width=272 height=46></td>
            </tr>
            <tr>
               
    <td colspan=2 sliceid="03FE9C50"><a href="#" onclick="top.frames['frame1'].location.href='fejl.htm'" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image68','','images/img_25_o.gif',1)"><img src="images/img_25.gif" name="Image68" width="100" height="23" border="0"></a></td>
    <td colspan=3 sliceid="0481A8A9"><a href="#" onclick="top.frames['frame1'].location.href='skate.htm'" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image69','','images/img_26_o.gif',1)"><img src="images/img_26.gif" name="Image69" width="130" height="23" border="0"></a></td>
    <td colspan=2 sliceid="04D1AC31"><a href="#" onclick="top.frames['frame1'].location.href='link.htm'" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image70','','images/img_27_o.gif',1)"><img src="images/img_27.gif" name="Image70" width="76" height="23" border="0"></a></td>
    <td colspan=2 sliceid="055FBF97"><a href="#" onclick="top.frames['frame1'].location.href='kontakt.htm'" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image71','','images/img_28_o.gif',1)"><img src="images/img_28.gif" name="Image71" width="112" height="23" border="0"></a></td>
            </tr>
            <tr>
               
    <td sliceid="128D682C"><img src="images/img_29.jpg" width=321 height=103></td>
               
    <td colspan=9 sliceid="15415232"><img src="images/img_30.jpg" width=418 height=103></td>
               
    <td sliceid="173E6219"><img src="images/img_31.jpg" width=269 height=103></td>
               
    <td sliceid="1D478578"><img src="images/img_32.jpg" width=272 height=103></td>
            </tr>
            <tr>
               
    <td sliceid="12D9D492"><img src="images/img_33.jpg" width=321 height=108></td>
               
    <td colspan=9 sliceid="15911413"><img src="images/img_34.jpg" width=418 height=108></td>
               
    <td sliceid="19F49AFE"><img src="images/img_35.jpg" width=269 height=108></td>
               
    <td sliceid="1D76F727"><img src="images/img_36.jpg" width=272 height=108></td>
            </tr>
            <tr>
               
    <td sliceid="13345BD9"><img src="images/img_37.jpg" width=321 height=109></td>
               
    <td colspan=9 sliceid="15DE456E"><img src="images/img_38.jpg" width=418 height=109></td>
               
    <td sliceid="1A2AB7A3"><img src="images/img_39.jpg" width=269 height=109></td>
               
    <td sliceid="1DB1F331"><img src="images/img_40.jpg" width=272 height=109></td>
            </tr>
            <tr>
               
    <td sliceid="1394877A"><img src="images/img_41.jpg" width=321 height=107></td>
               
    <td colspan=9 sliceid="1609DE54"><img src="images/img_42.jpg" width=418 height=107></td>
               
    <td sliceid="1A81247A"><img src="images/img_43.jpg" width=269 height=107></td>
               
    <td sliceid="1DDE0F65"><img src="images/img_44.jpg" width=272 height=107></td>
            </tr>
            <tr>
               
    <td sliceid="13DEA501"><img src="images/img_45.jpg" width=321 height=108></td>
               
    <td colspan=9 sliceid="165792FD"><img src="images/img_46.jpg" width=418 height=108></td>
               
    <td sliceid="1AB90CB0"><img src="images/img_47.jpg" width=269 height=108></td>
               
    <td sliceid="1E2495CA"><img src="images/img_48.jpg" width=272 height=108></td>
            </tr>
            <tr>
               
    <td sliceid="140B4483"><img src="images/img_49.jpg" width=321 height=104></td>
               
    <td colspan=9 sliceid="169418F1"><img src="images/img_50.jpg" width=418 height=104></td>
               
    <td sliceid="1B0D6C4F"><img src="images/img_51.jpg" width=269 height=104></td>
               
    <td sliceid="1E4BD299"><img src="images/img_52.jpg" width=272 height=104></td>
            </tr>
        </table>
    </body>

</html>
Avatar billede gruppe422 Nybegynder
08. januar 2003 - 23:25 #1
Jeg kan godt sætte det ind i et andet dokument. Men netop lige dette, kan jeg ikke få til at fungerer....

plz hjælp mig :-)
Avatar billede gruppe422 Nybegynder
09. januar 2003 - 07:35 #2
øv!, er der slet ingen der kan hjælpe mig?
Avatar billede gruppe422 Nybegynder
09. januar 2003 - 16:26 #3
come on!, er det flere points der skal til?
Avatar billede gruppe422 Nybegynder
13. januar 2003 - 11:14 #4
lukket....
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Kurser inden for grundlæggende programmering

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester