Diskuze: Neodosiela niečo?

JavaScript JavaScript Neodosiela niečo?

Avatar
Raiper34
Redaktor
Avatar
Raiper34:

Zdar, pls mohol by mi niekto pozreť tento kód, či náhodou stránka neposiela nejaké údaje niekomu? Ten JS hlavne, v JS sa vôbec nevyznám.... :/

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Úvod - Rofidas s.r.o.</title>
<meta http-equiv="content-type" content="text/html; charset=windows-1250">
<meta name="author" content="Raiper34">
<link rel="stylesheet" type="text/css" href="default.css" />
<script src="ac_activex.js" type="text/javascript"></script>

<script language="JavaScript1.4" type="text/javascript">
<!--
function jsPlay(soundobj) {
 var thissound= eval("document."+soundobj);
 try {
     thissound.Play();
 }
 catch (e) {
     thissound.DoPlay();
 }
}
//-->
</script>

<script language="javascript" type="text/javascript">
<!--
function MM_swapImgRestore() {
  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() {
  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) {
  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() {
  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>

<style type="text/css">
div#container
{
        position:relative;
        width: 883px;
        margin-top: 0px;
        margin-left: auto;
        margin-right: auto;
        text-align:left;
}
body {text-align:center;margin:0}
</style>

</head>
<body background="images/Untitled-1.png" bgProperties="fixed" Text="#000000" bgColor="#000000" Link="#000000" VLink="#000000" ALink="#000000" style="background-attachment:fixed;background-repeat:repeat-x;background-position:top center;">
<div id="container">
<div id="roundrect1" style="position:absolute; overflow:hidden; left:0px; top:360px; width:920px; height:398px; z-index:0"><img border=0 width="100%" height="100%" alt="" src="images/roundrect32891266.gif"></div>

<div id="roundrect3" style="position:absolute; overflow:hidden; left:23px; top:381px; width:873px; height:352px; z-index:1"><img border=0 width="100%" height="100%" alt="" src="images/roundrect6436258.gif"></div>

<div id="text1" style="position:absolute; overflow:hidden; left:41px; top:401px; width:836px; height:315px; z-index:2">
<div class="wpmd">
<div><font class="ws12">Úvod</font></div>
<div align=center><font class="ws12"><BR></font></div>
<div align=center><font class="ws12">Vítajte na stránkach našej spoločnosti. Zaisťujeme výstavbu a rekonštrukciu rodinných a bytových </font></div>
<div align=center><font class="ws12">domov ako pre súkromný, tak i pre verejný sektor. Je pre nás samozrejmosťou realizovať diela </font></div>
<div align=center><font class="ws12">v kvalite zodpovedajúcej predstavám investora spĺňajúce požiadavky príslušných noriem. Pozrite si </font></div>
<div align=center><font class="ws12">našu ponuku služieb a aj vy sa môžete stať&nbsp; našimi spokojnými zákazníkmi.</font></div>
<div align=center><font class="ws12"><BR></font></div>
<div align=center><font class="ws12"><BR></font></div>
<div align=center><font class="ws12">Naša firma Vám ponúka tie najkvalitnejšie služby v obore stavebníctva,obchodu a logistike. Naším zákazníkom navyše </font></div>
<div align=center><font class="ws12">zaisťujeme komplexné služby: architekta, inžiniersku činnosť, stavbyvedúceho, stavebný dozor, </font></div>
<div align=center><font class="ws12">zabezpečenie úveru, prefinancovanie&nbsp; a realizáciu celej stavby na kľúč.</font></div>
</div></div>

<div id="text2" style="position:absolute; overflow:hidden; left:325px; top:787px; width:234px; height:21px; z-index:3">
<a href="http://www.raiper34.net"><div class="wpmd">
<div><font color="#000000">design a programovanie: Raiper34 2013</font></div>
</div></a></div>

<div id="slideshow1" style="position:absolute; overflow:hidden; left:0px; top:26px; width:919px; height:300px; z-index:4">
<script type="text/javascript">
AC_RunFlashContent('width','919','height','300','quality','high','autoplay','true','loop','true','wmode','opaque','FlashVars','bcastr_xml_url=images/slideshow5247234.xml&AutoPlayTime=5&TitleTextColor=0x000000&TitleBgColor=0x00FF00','codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab','pluginspage','http://www.macromedia.com/go/getflashplayer','src','images/bcastr31.swf');
</script>
<noscript>
<object width=919 height=300 classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">
<param name="movie" value="images/bcastr31.swf">
<param name="quality" value="high">
<param name="loop" value="true">
<param name="wmode" value="opaque">
<param name="autoplay" value="true">
<param name="FlashVars" value="bcastr_xml_url=images/slideshow5247234.xml&AutoPlayTime=5&TitleTextColor=0x000000&TitleBgColor=0x00FF00">
<embed src="images/bcastr31.swf" width=919 height=300 quality="high" TYPE="application/x-shockwave-flash" wmode="opaque" FlashVars="bcastr_xml_url=images/slideshow5247234.xml&AutoPlayTime=5&TitleTextColor=0x000000&TitleBgColor=0x00FF00" loop="true" autoplay="true" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
</object>
</noscript>
</div>

<div id="shape1" style="position:absolute; overflow:hidden; left:0px; top:325px; width:919px; height:43px; z-index:5"><img border=0 width="100%" height="100%" alt="" src="images/shape1169009.gif"></div>

<div id="hr1" style="position:absolute; overflow:hidden; left:0px; top:771px; width:921px; height:17px; z-index:6">
<hr size=1 width=921 color="#000000">
</div>

<div id="image1" style="position:absolute; overflow:hidden; left:-38px; top:1px; width:300px; height:150px; z-index:7"><img src="images/rofidas logo.png" alt="" title="" border=0 width=300 height=150></div>

<div id="rollimg1" style="position:absolute; overflow:hidden; left:216px; top:326px; width:120px; height:41px; z-index:8">
<a onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('rollimg1','','images/nav78838690a.gif',1)" href="index.html">
<img name="rollimg1" onLoad="MM_preloadImages('images/nav78838690a.gif')" width=120 height=41 alt="úvod" title="úvod" border=0 src="images/nav78838690i.gif">
</a></div>

<div id="rollimg2" style="position:absolute; overflow:hidden; left:336px; top:326px; width:120px; height:41px; z-index:9">
<a onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('rollimg2','','images/nav78838691a.gif',1)" href="sluzby.html">
<img name="rollimg2" onLoad="MM_preloadImages('images/nav78838691a.gif')" width=120 height=41 alt="služby" title="služby" border=0 src="images/nav78838691i.gif">
</a></div>

<div id="rollimg3" style="position:absolute; overflow:hidden; left:456px; top:326px; width:120px; height:41px; z-index:10">
<a onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('rollimg3','','images/nav78838692a.gif',1)" href="galéria.html">
<img name="rollimg3" onLoad="MM_preloadImages('images/nav78838692a.gif')" width=120 height=41 alt="galéria" title="galéria" border=0 src="images/nav78838692i.gif">
</a></div>

<div id="rollimg4" style="position:absolute; overflow:hidden; left:576px; top:326px; width:120px; height:41px; z-index:11">
<a onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('rollimg4','','images/nav78838693a.gif',1)" href="kontakt.html">
<img name="rollimg4" onLoad="MM_preloadImages('images/nav78838693a.gif')" width=120 height=41 alt="" title="" border=0 src="images/nav78838693i.gif">
</a></div>

</div>

</body>
</html>
Odpovědět 30.5.2013 15:56
Posledná vydaná hra: http://www.islandsoft.cz/index.php?art=hra-akcna-space-resistance
Avatar
Juraj Mlich
Redaktor
Avatar
Juraj Mlich:

Myslím že nie ale nevidím do súboru ac_activex.js:

<script src="ac_activex.js" type="text/javascript"></script>
Nahoru Odpovědět 30.5.2013 16:01
Vždy je lepšie učiť sa z cudzích chýb, než z vlastných chýb.
Avatar
Raiper34
Redaktor
Avatar
Odpovídá na Juraj Mlich
Raiper34:

tu je:

//
//
function AC_AX_RunContent(){
  var ret = AC_GetArgs(arguments);
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_RunFlashContent(){
  var ret =
    AC_GetArgs
    (  arguments, "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
     , "application/x-shockwave-flash"
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_RunMMContent(){
  var ret =
    AC_GetArgs
    (  arguments, "filename", "clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
     , "application/x-mplayer2"
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_RunRealContent(){
  var ret =
    AC_GetArgs
    (  arguments, "src", "clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA"
     , "audio/x-pn-realaudio-plugin"
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_RunQTContent(){
  var ret =
    AC_GetArgs
    (  arguments, "src", "clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
     , "video/quicktime"
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_Generateobj(objAttrs, params, embedAttrs)
{
  var str = '<object ';
  for (var i in objAttrs)
    str += i + '="' + objAttrs[i] + '" ';
  str += '>';
  for (var i in params)
    str += '<param name="' + i + '" value="' + params[i] + '" /> ';
  str += '<embed ';
  for (var i in embedAttrs)
    str += i + '="' + embedAttrs[i] + '" ';
  str += ' ></embed></object>';

  document.write(str);
}

function AC_GetArgs(args, srcParamName, classid, mimeType){
  var ret = new Object();
  ret.embedAttrs = new Object();
  ret.params = new Object();
  ret.objAttrs = new Object();
  for (var i=0; i < args.length; i=i+2){
    var currArg = args[i].toLowerCase();
    switch (currArg){
/// embed args
      case "pluginspage":
      case "type":
        ret.embedAttrs[args[i]] = args[i+1];
        break;
/// object args
      case "data":
      case "codebase":
      case "classid":
      case "id":
        ret.objAttrs[args[i]] = args[i+1];
        break;
/// common args
      case "width":
      case "height":
      case "align":
      case "vspace":
      case "hspace":
      case "class":
      case "title":
      case "accesskey":
      case "name":
      case "tabindex":
        ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
        break;
// special args
      case "src":
        ret.embedAttrs["src"] = args[i+1];
        ret.params[srcParamName] = args[i+1];
        break;
// params
      default:
        ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
    }
  }

  if (classid) ret.objAttrs["classid"] = classid;
  if (mimeType) ret.embedAttrs["type"] = mimeType;

  return ret;
}
Nahoru Odpovědět 30.5.2013 16:20
Posledná vydaná hra: http://www.islandsoft.cz/index.php?art=hra-akcna-space-resistance
Avatar
Juraj Mlich
Redaktor
Avatar
Odpovídá na Raiper34
Juraj Mlich:

Toto je už na mňa prizložité, ale myslím že to spúšťa Flash :) a vo Flash tiež môže (aspoň myslím) odosielať

Nahoru Odpovědět 30.5.2013 16:27
Vždy je lepšie učiť sa z cudzích chýb, než z vlastných chýb.
Děláme co je v našich silách, aby byly zdejší diskuze co nejkvalitnější. Proto do nich také mohou přispívat pouze registrovaní členové. Pro zapojení do diskuze se přihlas. Pokud ještě nemáš účet, zaregistruj se, je to zdarma.

Zobrazeno 4 zpráv z 4.