Frage zu Javascript Code - Pagepeel -

xtramen01

Erfahrenes Mitglied
Hallo Leute,

ich habe hier ein Javascript um ein Pagepeel einzubinden.
Es klappt wunderbar!

Allerdings wird das kleine Image hinter dem Pagepeel nur 1 Sekunde angezeigt dann springts um und das große Bild ist da, welches eigentlich nur angezeigt werden soll wenn man mit der Maus drüberfährt.

Kann hier jemand einen Fehler finden?

Code:
<script type="text/JavaScript">
<!--
var ppimg = new Image();
ppimg.src = '/';

var ppo = new Object();
ppo.ad_url = escape('http://localhost');
ppo.small_path = 'file:///C:/Users/root/Desktop/page-peel/pp_sm.swf';
ppo.small_image = escape('small.jpg');
ppo.big_path = 'file:///C:/Users/root/Desktop/page-peel/pp_big.swf';
ppo.big_image = escape('big.jpg');

ppo.small_width = '100';
ppo.small_height = '100';
ppo.small_params = 'ico=' + ppo.small_image;
ppo.big_width = '650';
ppo.big_height = '650';
ppo.big_params = 'big=' + ppo.big_image + '&ad_url=' + ppo.ad_url;
function sizeup987(){
	document.getElementById('ppocornerBig').style.top = '0px';
	document.getElementById('ppocornerSmall').style.top = '-1000px';
}
function sizedown987(){
	document.getElementById("ppocornerSmall").style.top = "0px";
	document.getElementById("ppocornerBig").style.top = "-1000px";
}
ppo.putObjects = function () {
document.write('<div id="ppocornerSmall" style="position:absolute;width:'+ ppo.small_width +'px;height:'+ ppo.small_height +'px;z-index:9999999;right:0px;top:0px;">');
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"');
document.write(' id="ppocornerSmallObject" width="'+ppo.small_width+'" height="'+ppo.small_height+'">');
document.write(' <param name="allowScriptAccess" value="always"/> ');
document.write(' <param name="movie" value="'+ ppo.small_path +'?'+ ppo.small_params +'"/>');
document.write(' <param name="wmode" value="transparent" />');
document.write(' <param name="quality" value="high" /> ');
document.write(' <param name="FlashVars" value="'+ppo.small_params+'"/>');
document.write('<embed src="'+ ppo.small_path + '?' + ppo.small_params +'" name="ppocornerSmallObject" wmode="transparent" quality="high" width="'+ ppo.small_width +'" height="'+ ppo.small_height +'" flashvars="'+ ppo.small_params +'" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
document.write('</object></div>');

document.write('<div id="ppocornerBig" style="position:absolute;width:'+ ppo.big_width +'px;height:'+ ppo.big_height +'px;z-index:9999999;right:0px;top:0px;">');
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"');
document.write(' id="ppocornerBigObject" width="'+ ppo.big_width +'" height="'+ ppo.big_height +'">');
document.write(' <param name="allowScriptAccess" value="always"/> ');
document.write(' <param name="movie" value="'+ ppo.big_path +'?'+ ppo.big_params +'"/>');
document.write(' <param name="wmode" value="transparent"/>');
document.write(' <param name="quality" value="high" /> ');
document.write(' <param name="FlashVars" value="'+ ppo.big_params +'"/>');
document.write('<embed src="'+ ppo.big_path + '?' + ppo.big_params +'" id="ppocornerBigEmbed" name="ppocornerBigObject" wmode="transparent" quality="high" width="'+ ppo.big_width +'" height="'+ ppo.big_height +'" flashvars="'+ ppo.big_params +'" swliveconnect="true" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
document.write('</object></div>');

}
ppo.putObjects();
//-->
</script>

Aufgerufen wird dann im <body> mit:

Code:
    <script type="text/javascript">

      ppo.putObjects();

    </script>

Wäre sehr dankbar wenn mal jemand der sich auskennt drüberschauen könnte.

Gruss
 
Moin,

stelle dazu bitte ein Beispiel online bereit....niemand hier ausser dir hat Zugriff auf deine Festplatte und die dort befindlichen Dateien file:///C:/Users/root/Desktop/page-peel/etc....
 
Zurück