[ serbian_boy @ 19.02.2007. 12:47 ] @
zasto nece da mi rade scripte za php-fusion , kao sto je sneg i ostalo?
[ emranonline @ 21.02.2007. 16:30 ] @
meni je sve to lepo radilo.
gde stavljas javascript code?
ja sam to stavljao u maincore.php.
pokusaj tako
[ serbian_boy @ 23.02.2007. 12:12 ] @
OVO MI NAPISE ,kad otvorim stranicu a stavim tu gde si rekao
Parse error: syntax error, unexpected '<' in /var/www/virtual/extrachat.info/htdocs/maincore.php on line 337
[ emranonline @ 24.02.2007. 20:25 ] @
ja stavljam javascript na kraju stranice posle ?> znaka.
evo na primer

Code:
 if (iADMIN) {
    define("iAUTH", substr($userdata['user_password'],16,32));
    $aidlink = "?aid=".iAUTH;
}
?> <!--Kraj PHP koda--!>
<script language="JavaScript1.2">

var clickmessage="Desni Klik nije dozvoljen!"

function disableclick(e) {
if (document.all) {
if (event.button==2||event.button==3) {
if (event.srcElement.tagName=="IMG"){
alert(clickmessage);
return false;
}
}
}
else if (document.layers) {
if (e.which == 3) {
alert(clickmessage);
return false;
}
}
else if (document.getElementById){
if (e.which==3&&e.target.tagName=="IMG"){
alert(clickmessage)
return false
}
}
}

function associateimages(){
for(i=0;i<document.images.length;i++)
document.images[i].onmousedown=disableclick;
}

if (document.all)
document.onmousedown=disableclick
else if (document.getElementById)
document.onmouseup=disableclick
else if (document.layers)
associateimages()
</script>