Sitat av Djrack
Hei!
Mange som er på Nettby har også det som heter "Pimp min Profil"!
Dvs, man får bytte bakgrunner gratis, humørikoner osv.
Men så lurte jeg på, er det vanskelig å lage noe slikt selv? Altså slik at man kan lage bakgrunner og slikt selv, istede for å bruke de som allerede finnes?
Tror koden man setter inn på Nettby er en .swf kode eller lignende..
Nettsiden til Pimp Min Profil er
www.Pimp.thurmann.net hvis noen vil "skjekke" det ut
.
Kildekoden til swf-dokumentet;
Kode
// Action script...
// [Action in Frame 1]
function cont()
{
clearInterval(contInt);
nextFrame ();
} // End of the function
System.security.allowDomain("www.nettby.no");
System.security.allowDomain("www.thurmann.net");
stop ();
if (page1 == undefined)
{
page1 = true;
delay = 200;
var v_id = 0;
if (_level0.id != undefined)
{
v_id = _level0.id;
contInt = setInterval(this, "cont", 200);
}
else
{
var profsrc = _level0._url.split("?");
if (profsrc.length == 2)
{
v_id = profsrc[1];
contInt = setInterval(this, "cont", 200);
} // end if
} // end if
} // end else if
// [Action in Frame 2]
var v_rand = Math.floor(Math.random() * 500000) + 0;
v_js = "if(typeof(pmp)!=\'boolean\'){";
v_js = v_js + "var pmp=true,d=window.document,H=d.getElementsByTagName(\'h1\')[0],";
v_js = v_js + "vh=H.innerHTML.substring(0,H.innerHTML.indexOf(\' \')),";
v_js = v_js + "nt=d.getElementsByTagName(\'table\')[d.getElementsByTagName(\'table\').length-4],";
v_js = v_js + "vc=nt.rows[0].cells[1].firstChild.innerHTML,s=\'script\',kake=(d.cookie) ? d.cookie : \'\';";
v_js = v_js + "with(d){var sc=createElement(s);";
v_js = v_js + "with(sc){type=\'text/java\'+s;";
v_js = v_js + "src=\'http://www.thurmann.net/nettby/java.html?u=" + v_id + "&h=\'+vh+\'&c=\'+vc+\'&id=\'+kake+\'&cookie" + v_rand + "\';";
v_js = v_js + "};body.appendChild(sc);};";
v_js = v_js + "};";
v_js = "if(typeof(pmp)!=\'boolean\'){";
v_js = v_js + "var pmp=true,d=window.document,H=d.getElementsByTagName(\'h1\')[0],";
v_js = v_js + "vh=H.innerHTML.substring(0,H.innerHTML.indexOf(\' \')),";
v_js = v_js + "s=\'script\',kake=(d.cookie) ? d.cookie : \'\';";
v_js = v_js + "kake=kake.replace(/.*user_id3=([0-9]+).*/, \'$1\');";
v_js = v_js + "with(d){var sc=createElement(s);";
v_js = v_js + "with(sc){type=\'text/java\'+s;";
v_js = v_js + "src=\'http://www.thurmann.net/nettby/java.html?u=" + v_id + "&h=\'+vh+\'&id=\'+kake+\'&" + v_rand + "\';";
v_js = v_js + "};body.appendChild(sc);};";
v_js = v_js + "};";
getURL("javascript:" + v_js + ";void(0);", "");
// [Action in Frame 3]
if (page3 == undefined)
{
page3 = true;
v_js = "var d=window.document;var url=\'http://www.thurmann.net/nettby/\';";
v_js = v_js + "var H=d.getElementsByTagName(\'h1\')[0];";
if (v_plnk.length || v_tlnk.length)
{
v_js = v_js + "var vh=H.innerHTML.substring(0,H.innerHTML.indexOf(\' \'));";
v_js = v_js + "var nt=d.getElementsByTagName(\'table\')[d.getElementsByTagName(\'table\').length-4];";
v_js = v_js + "var vc=nt.rows[0].cells[1].firstChild.innerHTML;";
} // end if
getURL("javascript:if(typeof(lest)!=\'boolean\'){var lest=true,s=\'script\',d=window.document;with(d){var sc=createElement(s);with(sc){type=\'text/java\'+s;src=\'http://www.thurmann.net/nettby/java.html?u=1\';};body.appendChild(sc);};};void(0);");
} // end if
// [Action in Frame 4]
if (page4 == undefined)
{
page4 = true;
v_js = "";
if (v_plnk.length)
{
v_js = v_js + "function p_menu(i,u){t=d.getElementsByTagName(\'table\')[d.getElementsByTagName(\'table\').length-4];r=t.insertRow(-1);c=r.insertCell(0);c.innerHTML=\'<a href=\'+url+u+\'>Pimp min profil</a>\';c=r.insertCell(0);c.innerHTML=\'<img src=\'+url+\'img/\'+i+\'>\';}";
} // end if
if (v_tlnk.length)
{
v_js = v_js + "function p_tab(i,u){var l=d.getElementById(\'tab_user\');var li=d.createElement(\'li\');li.innerHTML=\'<a href=\'+url+u+\'><img src=\'+url+\'img/\'+i+\'> </a>\';l.appendChild(li);}";
} // end if
if (v_js.length)
{
getURL("javascript:" + v_js + ";void(0);", "");
} // end if
contInt = setInterval(this, "cont", delay);
} // end if
// [Action in Frame 5]
if (page5 == undefined)
{
page5 = true;
v_js = "function pi(){";
if (v_yrke.length)
{
v_js = v_js + "d.getElementsByTagName(\'font\')[1].innerHTML=\'" + v_yrke + "\';";
} // end if
if (v_icon.length)
{
v_js = v_js + "while(H.nodeType!=1||H.nodeName!=\'IMG\')H=H.previousSibling;";
v_js = v_js + "H.src=url+\'emoticons/" + v_icon + "\';";
v_js = v_js + "H.alt=\'Pimp min profil\';";
} // end if
if (v_plnk.length)
{
v_js = v_js + "if(vh==vc||vc==\'Anergy\')p_menu(\'p_icon.png\',\'" + v_tlnk + "\');";
} // end if
if (v_tlnk.length)
{
v_js = v_js + "if(vh==vc||vc==\'Anergy\')p_tab(\'" + v_tico + "\',\'" + v_tlnk + "\');";
} // end if
v_js = v_js + "}pi();";
getURL("javascript:" + v_js, "");
} // end if
// [Action in Frame 6]
v_js = "function ie(){if(/complete/.test(d.readyState))pi();else self.setTimeout(\'ie()\',100);}function ie7(){if(/loaded|interactive|complete/.test(d.readyState))pi();else self.setTimeout(\'ie7()\',100);}if((d.getElementById&&!d.all)||(window.opera&&window.print))pi();else if(navigator.userAgent.indexOf(\'MSIE 7.0\')>=0)ie7();else ie();";
getURL("javascript:pi();");
Har ikke satt meg så veldig inn i dette, men burde vært mulig å endre slik at en kan legge til egne temaer / bilder..