Script Nuvoletta Netlog

« Older   Newer »
  Share  
Squall.Leonhart
view post Posted on 7/7/2010, 21:38




SPOILER (click to view)
CODICE
<script type="text/javascript">
var intervallo = 25000;
function init_refresh() {
setTimeout('refresh_iframe()',intervallo);
}
// caricamento iterato dell'iframe
function refresh_iframe() {
var myIFrame = document.getElementById('IFrame_refresh');
if (!myIFrame) return false;
myIFrame.src = myIFrame.src;
setTimeout('refresh_iframe()',intervallo);
}
window.onload = init_refresh;

</script>

<script type="text/javascript">
//Realizzato da Giulio Ganci editato da DarkStyle

function setOpacity(id, opacity) {
var element = document.getElementById(id);
if(document.all)
element.style.filter = "alpha(opacity=" + opacity + ")";
else
element.style.opacity = opacity / 100;
}

function fadeOut(divID, time) {
var speed = Math.round(time / 100);
var frame = 0;
for(fade = 100; fade > 0; fade--) {
setTimeout("setOpacity('"+divID+"', "+fade+")", (speed * frame));
frame++;
}
}

function fadeIn(divID, time) {
var speed = Math.round(time / 100);
var frame = 0;
for(fade = 0; fade < 100; fade++) {
setTimeout("setOpacity('"+divID+"', "+fade+")", (speed * frame));
frame++;
}
}

function fadeIn2(divID, time) {
fadeIn ('nuvoletta', 1000);
setTimeout ("fadeOut('nuvoletta', 1000)", 5000)
}

function StartFade() {
setTimeout ("fadeIn2('nuvoletta', 1000)", 2500);
setInterval ("fadeIn2('nuvoletta', 1000)", 30000);
}

document.onload=StartFade();
</script>


<style type="text/css">
/* By DarkStyle */
#nuvoletta {position: fixed; right:0px; bottom:0px; width: 200px; background: url(http://i26.tinypic.com/vd2s6t.png) no-repeat center; height: 180px; -moz-opacity: 0.00; -khtml-opacity: 0.00; filter: alpha(opacity=00); opacity: 0.00; display: block !important; display:none}
</style>

<div id="nuvoletta" valign="center"><div>

<iframe id="IFrame_refresh" src="http://www.forumcommunity.net/rss.php?a=122530&type=html&color=000000&n=1" allowtransparency="true" scrolling="auto" frameborder="0" style="width:80%; margin-top: 25px; margin-left: 6px">&nbsp;</iframe></div>

</div>


Esso va inserito in AMMINISTRAZIONE>GESTIONE HTML>IN CIMA AL FORUM

Le parti principali da personalizzare sono 2: (infondo al CODE)
CODICE
<style type="text/css">
/* By DarkStyle */
#nuvoletta {position: fixed; right:0px; bottom:0px; width: 200px; background: url(http://i26.tinypic.com/vd2s6t.png) no-repeat center; height: 180px; -moz-opacity: 0.00; -khtml-opacity: 0.00; filter: alpha(opacity=00); opacity: 0.00; display: block !important; display:none}
</style>

C'č solo da modificare un link, cioč quello dell' immagine della nuvolatta http://i26.tinypic.com/vd2s6t.png con l' url della vostra nuvoletta personalizzata e se volete sono modificabili i campi width (larghezza) e height (lunghezza) a seconda delle dimensioni della vostra immagine.

Mentre nellla seconda parte:
CODICE
<iframe id="IFrame_refresh" src="http://www.forumcommunity.net/rss.php?a=122530&type=html&color=000000&n=1" allowtransparency="true" scrolling="auto" frameborder="0" style="width:80%; margin-top: 25px; margin-left: 6px"> </iframe>

per far si che il code mostri le discussioni del vostro forum dovete modificare www.forumcommunity.net/rss.php?a=122530 a seconda del circuito e del ID* del vostro forum.

ID* č il numero che trovate infondo al url dell' amministrazione: ESEMPIO.

Quindi a seconda di dov'č il vostro forum (FC;FF;BF) dovete inserire questo url:
www.forumcommunity.net/rss.php?a=IDFORUM
www.forumfree.net/rss.php?a=IDFORUM
www.blogfree.net/rss.php?a=IDFORUM
 
Top
0 replies since 7/7/2010, 21:38   473 views
  Share