Ciao br1.. è notte lo so... ma dopo vari spulci nelle variabili della skin, sono riuscito finalmente a replicare l'effetto "in locale" diciamo.. so che è un thread lungo spero tu lo legga comunque.. grazie...
vediamo gli errori che ho commesso prima, o meglio cosa ho cambiato affinche l'effetto funzionasse anche in locale creando una pagina html ad hoc :
1) mancava un altra function presente in un altro .js ( ipb_global.js ) ho pulito quest'ultimo rimanendo intatte all'interno solo le variabili interessate e la function interessata.. per ora non la implemento in un unico , ad esempio, itab_global.js
eccola :
Codice PHP:
var is_ie = ( (uagent.indexOf('msie') != -1) && (!is_opera) && (!is_safari) && (!is_webtv) );
var is_ie4 = ( (is_ie) && (uagent.indexOf("msie 4.") != -1) );
var is_ie7 = ( (is_ie) && (uagent.indexOf("msie 7.") != -1) );
var is_moz = (navigator.product == 'Gecko');
/*-------------------------------------------------------------------------*/
// Generate new iframe include
/*-------------------------------------------------------------------------*/
function iframe_include()
{
this.iframe_id = null;
this.iframe_obj = null;
this.iframe_add_to_div = null;
this.iframe_add_to_div_obj = null;
this.iframe_main_wrapper = null;
this.iframe_classname = 'GBL-component-iframe';
this.ok_to_go = 1;
this.iframe_height = 300;
this.ajax = '';
};
iframe_include.prototype.init = function()
{
try
{
this.iframe_add_to_div_obj = document.getElementById( this.iframe_add_to_div );
}
catch( error )
{
this.ok_to_go = 0;
}
};
iframe_include.prototype.include = function( url )
{
//-----------------------------------------
// Check
//-----------------------------------------
if ( ! this.ok_to_go )
{
return false;
}
//-----------------------------------------
// INIT
//-----------------------------------------
var iheight = parseInt( this.iframe_add_to_div_obj.style.height );
var iwidth = parseInt( this.iframe_add_to_div_obj.style.width );
//-----------------------------------------
// Generate iFrame box
//-----------------------------------------
if ( this.iframe_obj )
{
this.iframe_add_to_div_obj.removeChild( this.iframe_obj );
}
this.iframe_obj = document.createElement( 'IFRAME' );
this.iframe_obj.src = url;
this.iframe_obj.id = this.iframe_id;
this.iframe_obj.name = this.iframe_id;
this.iframe_obj.scrolling = 'no';
this.iframe_obj.frameBorder = 'no';
this.iframe_obj.border = '0';
this.iframe_obj.className = this.iframe_classname;
this.iframe_obj.style.width = iwidth ? iwidth + 'px' : '100%';
this.iframe_obj.style.height = iheight ? iheight - 5 + 'px' : this.iframe_height + 'px';
this.iframe_obj.style.overflow = 'hidden';
this.iframe_obj.style.padding = '0px';
this.iframe_obj.style.margin = '0px';
// Ajax object
this.ajax = new ajax_request();
// Fix up padding
this.iframe_add_to_div_obj.style.padding = '0px';
this.iframe_add_to_div_obj.style.margin = '0px';
if( is_ie && !is_ie7 )
{
this.iframe_add_to_div_obj.style.paddingLeft = '6px';
this.iframe_add_to_div_obj.style.paddingRight = '6px';
}
// Add environmentals..
this.iframe_obj.iframe_loaded = 0;
this.iframe_obj.iframe_init = 0;
this.iframe_obj._this = this;
// Attach iFrame inside our DIV
this.iframe_add_to_div_obj.style.overflow = '';
this.iframe_add_to_div_obj.appendChild( this.iframe_obj );
this.ajax.show_loading( ajax_load_msg );
// Add handler
if ( is_ie )
{
this.iframe_obj.allowTransparency = true;
this.iframe_obj.onreadystatechange = this.iframe_on_load_ie;
}
else
{
this.iframe_obj.onload = this.iframe_onload;
}
};
2) piccola modifica quindi alla precedente pagina html creata :
Codice PHP:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento senza titolo</title>
<style type="text/css" media="all">
@import url(style_images/css_7.css);
</style>
</head>
<body>
<script type="text/javascript">
var ipb_var_image_url = "style_images/itab";
</script>
<script type="text/javascript" src='jscripts/ipb_global.js'></script>
<script type='text/javascript' src='style_images/itab/folder_js_skin/itab_global.js'></script>
<span rel='itab-about'>
[img]style_images/itab/itab_about_logo.gif[/img]
</span>
</body>
</html>
cosa è cambiato?
in primis il richiamo del css qui uso un @import url(style_images/css_7.css); prima src="style_images/css_7.css"
Non so che differenza ci sia onestamente, fatto sta che in quest'ultimo caso non funziona l'effetto
Naturalmente ho richiamato anche la function nel file ipb_global.js con :
<script type="text/javascript" src='jscripts/ipb_global.js'></script>
e per finire aggiunta la variabile
Codice PHP:
<script type="text/javascript">
var ipb_var_image_url = "style_images/itab";
</script>
Se ti andrebbe di vedere i file, ho ricompresso il tutto in un nuovo ZIP Scaricabile qui ...
-------------------------------------------
Capito il funzionamento in linea di massima almeno per un neofita come me... ,mi vien da chiedere forse te lo aspettavi ora...
come posso criptare anche io il contenuto del "pop up" che viene mostrato come è stato fatto per questa skins.. vedo ad esempio le function nel file itab_global.js:
function itab_about_create_box(o) & function itab_about_changelog(d)
nelle loro forme :
Codice PHP:
var d = itab_about_denc('521561....579523');
c.innerHTML = itab_about_denc('5065065...78573').replace(/\n/gi, '
');
se non erro sono criptate in bluefish? io una volta usavo un espediente in questo modo per decriptarle :
<SCRIPT language=JavaScript>document.write('<textarea cols="80" rows="40" name="whatever">');<!--
document.write(unescape("521561..523"));//--></SCRIPT>
</textarea>
in grasseto il codice usato per mettere in chiaro il contenuto criptato aggiunto subito dopo dopo il tag <script> e concluso con un </textarea>
Mi dava in locale creando una pagina html apposita il codice in chiaro..
Qui non saprei come gestire questa cosa nella function relativa...
Che ne pensi??? fattibile?
Immagino che forse avrò annoiato... chiedo cumunque scusa...
Notte
..:: Deltafox ::..