Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> expand baner, pod FF tyz...
R@ven
post
Post #1





Grupa: Zarejestrowani
Postów: 18
Pomógł: 0
Dołączył: 20.11.2004

Ostrzeżenie: (0%)
-----


Poszukuje sktypty do expand banerow etc.
W siecie znalazlem
Kod
<script LANGUAGE="JavaScript">
<!--
var SWFSRCA   = '111.swf';
var SWFSRCB   = '222.swf';
var WIDTH    = 500;
var HEIGHT   = 100;
var EWIDTH = 500;
var EHEIGHT = 450;
var EURL='http://www.idmnet.pl';
var CLICKURL=escape(EURL);
var TIMEOUT1 = 2000;
var TIMEOUT2 = 8000;
var plugin = false;
var fappVer = parseFloat(navigator.appVersion);
var IE = (navigator.userAgent.indexOf("Windows 95")>=0 || navigator.userAgent.indexOf("Windows 98")>=0 || navigator.userAgent.indexOf("Windows NT")>=0)&&(navigator.userAgent.indexOf('Opera')==-1)&&(navigator.appName != 'Netscape')&&(navigator.userAgent.indexOf('MSIE') > -1)&&(fappVer >=4);
if (IE){
    document.write('<SCR'+'IPT LANGUAGE=VBScript\> \n');
    document.write('on error resume next \n');
    document.write('plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4")))\n');
    document.write('if ( plugin <= 0 ) then plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5")))\n');
    document.write('if ( plugin <= 0 ) then plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6")))\n');
    document.write('<\/SCR'+'IPT\> \n');
if ( plugin ) {
    document.write('<SCR'+'IPT LANGUAGE=VBScript\> \n');
    document.write('on error resume next  \n');
    document.write('Sub mioflash_FSCommand(ByVal command, ByVal args) \n');
    document.write('call goAnimation() \n');
    document.write('end sub \n');
    document.write('<\/SCRIPT>  \n');
    document.write('<table width="'+WIDTH+'" cellpadding=0 cellspacing=0><tr><td><div id="mio">');
    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" ID=mioflash WIDTH='+WIDTH+' HEIGHT='+HEIGHT+'><PARAM NAME=movie VALUE="'+SWFSRCA+'?click='+EURL+'"><PARAM NAME=quality VALUE=high></OBJECT>');
    document.write('</div></td></table>');
    document.write('<div id="bio" style="position : absolute; left : 0; top : 0; width : '+EWIDTH+'; height :'+EHEIGHT+'; visibility : hidden; z-index:100">');
    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" ID=bioflash WIDTH='+EWIDTH+' HEIGHT='+EHEIGHT+'><PARAM NAME=movie VALUE="'+SWFSRCB+'?click='+EURL+'"> <PARAM NAME=quality VALUE=high> </OBJECT>');
    document.write('<img name="superpixel1" width=1 height=1>');
    document.write('</div>');
    document.write('<div id="bio2" style="position : absolute; left : 0; top : 0; width : '+EWIDTH+'; height : '+EHEIGHT+'; visibility : hidden; z-index:101">');
    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" ID=bioflash2 WIDTH='+EWIDTH+' HEIGHT='+EHEIGHT+'><PARAM NAME=movie VALUE="'+SWFSRCB+'?click='+EURL+'"> <PARAM NAME=quality VALUE=high> </OBJECT>');
    document.write('<img name="superpixel2" width=1 height=1>');
    document.write('</div>');
function goAnimation(){
   document.bioflash.Rewind();
   document.bioflash.Play();
   SetLayerRight('bio');
   SetLayerVis('mio','hidden');
   SetLayerVis('bio','visible');
  }
  function SetLayerRight(spritename)
  {
  var Lleft;
  var Ltop;
  Lleft = slx('mio') + WIDTH - EWIDTH;
  Ltop = sly('mio');
  SetLayerPos(spritename,Lleft,Ltop);
  }
  function slx(objname){
   var obj = document.all(objname);
   var tmp = obj.offsetLeft;
   while (obj.offsetParent != null) {
    obj = obj.offsetParent;
    tmp += obj.offsetLeft;
    if (obj.tagName == 'BODY') break;
    } return tmp;
  }
  function sly(objname){
   var obj = document.all(objname);
   var tmp = obj.offsetTop;
   while (obj.offsetParent != null) {
    obj = obj.offsetParent;
    tmp += obj.offsetTop;
    if (obj.tagName == 'BODY') break;
    } return tmp;
  }
  function SetLayerVis(spritename,state){
   document.all[spritename].style.visibility=state;
  }
  function SetLayerPos(spritename,left,top){
   document.all[spritename].style.top=top;
   document.all[spritename].style.left=left;
  }
  function MouseMove(e) {
if (((slx('mio')+WIDTH-EWIDTH) > event.x) || ((slx('mio')+WIDTH) < event.x) || ((sly('mio')) > event.y) || ((sly('mio')+EHEIGHT) < event.y) )
{
   SetLayerVis('bio','hidden');
   SetLayerVis('mio','visible');
}
  }
  setTimeout("SetLayerRight('bio2');",TIMEOUT1);
  setTimeout(" SetLayerVis('mio','hidden');",TIMEOUT1);
  setTimeout(" SetLayerVis('bio2','visible');",TIMEOUT1);
  setTimeout(" SetLayerVis('bio2','hidden');",TIMEOUT2);
  setTimeout(" SetLayerVis('mio','visible');",TIMEOUT2);
  setTimeout(" document.onmousemove=MouseMove;",TIMEOUT2);
    }
    else{
  function noflashShow()
  {
   SetLayerRight('bio');
   SetLayerVis('mio','hidden');
   SetLayerVis('bio','visible');
  }
  function noflashHide()
  {
   SetLayerVis('bio','hidden');
   SetLayerVis('mio','visible');
  }
  setTimeout("SetLayerRight('bio2');",TIMEOUT1);
  setTimeout(" SetLayerVis('mio','hidden');",TIMEOUT1);
  setTimeout(" SetLayerVis('bio2','visible');",TIMEOUT1);
  setTimeout(" SetLayerVis('bio2','hidden');",TIMEOUT2);
  setTimeout(" SetLayerVis('mio','visible');",TIMEOUT2);
}
}
// -->
</SCRIPT>

Ale dziadostwo nie dziala pod ff. Wie ktos jak przepisac pod ff, lub zpoadac mi nowy dzialajacy pod ff...
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 20.08.2025 - 07:21