Would you like to react to this message? Create an account in a few clicks or log in to continue.

You are not connected. Please login or register

Efect autocolant pe colţul forumului

Go down  Message [Page 1 of 1]

Speedy

Speedy
Owner

Efect autocolant pe colţul forumului

Folosind paşii acestui tutorial, veţi putea adăuga un efect tip autocolant în colţul dreapta-sus a unei paginii din forumul dvs.
Un exemplu puteţi vedea [You must be registered and logged in to see this link.].


Pentru început trebuie sa intrati in "PA =>Module => HTML => Administrare pagini HTML" si sa creati o pagina HTML "Creaza o noua pagina HTML" cu numele "autocolant" (IN CAZUL MEU AM FOLOSIT "KZ") in care sa introduceti urmatorul conţinut:

Code:
var jaaspeel = new Object();

jaaspeel.ad_url = escape('#URL');
jaaspeel.small_path = 'http://perso.numericable.fr/antonywar/small.swf';
jaaspeel.small_image = escape('IMG 1');
jaaspeel.small_width = '100';
jaaspeel.small_height = '100';
jaaspeel.small_params = 'ico=' + jaaspeel.small_image;

jaaspeel.big_path = 'http://perso.numericable.fr/antonywar/large.swf';
jaaspeel.big_image = escape('IMG 2');
jaaspeel.big_width = '600';
jaaspeel.big_height = '600';
jaaspeel.big_params = 'big=' + jaaspeel.big_image + '&ad_url=' + jaaspeel.ad_url;

function sizeup987(){
document.getElementById('jcornerBig').style.top = '0px';
document.getElementById('jcornerSmall').style.top = '-1000px';
}

function sizedown987(){
document.getElementById("jcornerSmall").style.top = "0px";
document.getElementById("jcornerBig").style.top = "-1000px";
}

jaaspeel.putObjects = function () {
// <jcornerSmall>
document.write('<div id="jcornerSmall" style="position:absolute;width:'+ jaaspeel.small_width +'px;height:'+ jaaspeel.small_height +'px;z-index:9999;right:0px;top:0px;">');
// object
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="jcornerSmallObject" width="'+jaaspeel.small_width+'" height="'+jaaspeel.small_height+'">');
// object params
document.write(' <param name="allowscriptAccess" value="always"/> ');
document.write(' <param name="movie" value="'+ jaaspeel.small_path +'?'+ jaaspeel.small_params +'"/>');
document.write(' <param name="wmode" value="transparent" />');
document.write(' <param name="quality" value="high" /> ');
document.write(' <param name="FlashVars" value="'+jaaspeel.small_params+'"/>');
// embed
document.write('<embed src="'+ jaaspeel.small_path + '?' + jaaspeel.small_params +'" name="jcornerSmallObject" wmode="transparent" quality="high" width="'+ jaaspeel.small_width +'" height="'+ jaaspeel.small_height +'" flashvars="'+ jaaspeel.small_params +'" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
document.write('</object></div>');
document.write('</script>');
// </jcornerSmall>
// <jcornerBig>
document.write('<div id="jcornerBig" style="position:absolute;width:'+ jaaspeel.big_width +'px;height:'+ jaaspeel.big_height +'px;z-index:9999;right:0px;top:0px;">');
// object
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="jcornerBigObject" width="'+ jaaspeel.big_width +'" height="'+ jaaspeel.big_height +'">');
// object params
document.write(' <param name="allowscriptAccess" value="always"/> ');
document.write(' <param name="movie" value="'+ jaaspeel.big_path +'?'+ jaaspeel.big_params +'"/>');
document.write(' <param name="wmode" value="transparent"/>');
document.write(' <param name="quality" value="high" /> ');
document.write(' <param name="FlashVars" value="'+ jaaspeel.big_params +'"/>');
// embed
document.write('<embed src="'+ jaaspeel.big_path + '?' + jaaspeel.big_params +'" id="jcornerBigEmbed" name="jcornerBigObject" wmode="transparent" quality="high" width="'+ jaaspeel.big_width +'" height="'+ jaaspeel.big_height +'" flashvars="'+ jaaspeel.big_params +'" swliveconnect="true" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
document.write('</object></div>');
// </jcornerBig>
setTimeout('document.getElementById("jcornerBig").style.top = "-1000px";',1000);
}
jaaspeel.putObjects();

Înlocuiţi "#URL" cu link-ul adresei destinate autocolantului, "IMG 1" cu link-ul imaginii care se vede atunci când nu este poziţionat cursorul peste autocolant şi "IMG 2" cu link-ul imaginii care se vede atunci când este poziţionat cursorul peste autocolant.


În exemplul de mai sus s-au folosit următoarele imagini:
IMG 1.[You must be registered and logged in to see this image.]
IMG 2.[You must be registered and logged in to see this image.]

Codul de adaugare a scriptului pe pagina dorita:

Code:
<script src=/terminal pagina.htm></script>
cu este la mine
Code:
<script src=/kz-h2.htm></script>
ScreenShoot
[You must be registered and logged in to see this image.]

Codul de mai sus îl puteţi adăuga în:
- mesaj pe pagina de start
- descrierea site-ului
- widget
- portal
- pagină html

Atenţie! Nu adăugaţi în:
- Numele site-ului
- Numele paginii de start

codul care trebuie bagat in pagina html + modificarile facute de tine la imagini si linkul de redirectionare
Va aparea ceva gen:
ScreenShoot
[You must be registered and logged in to see this image.]

https://klubzone.forumgratuit.ro

Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum