Pages: 123

  2008-08-24 11:55:46

Refresh/Reload
» FTalkAddict
FTalk Level: zero
332
0
1969-12-31

Re: [spoiler] Maaf, judulnya diganti lagi supaya pas ama tutorialnya, judul sebelumnya: -[b]{TUTORIAL} PHP-JavaScript Injector - Another way to secure your script[/b] -[b]{TUTORIAL} PHP-JavaScript Linker[

elow... R/R here from phils... I have some crazy questions here... :D :wallbash: [quote]?> <html><head><title>403 Forbidden</title></head><body><h1>Forbidden</h1>You don't have permission to access <? echo $_SERVER['PHP_SELF'] ?> on this server.<hr /></body></html> <? } else { header("Content-type:text/javascript;charset:UTF-8"); ?> [b]//what's best js to put here[/b] <? } ?>[/quote] I have no problem using your codes on firefox(my main browser) but on IE(my alternative browser) sometimes it loads the tweaks incomplete and sometimes not... so i'm not sure if it's my IE browser problem... or the js i'm using in your php script... I tried all of the below codes and they act oddly on IE and sometimes not(as i've observed) but no problem in firefox... just wanna know which one is the right one to comply to IE... [b]JS 1[/b] [quote]var headID = document.getElementsByTagName("head")[0]; var setScript = document.createElement("script"); setScript.type = "text/javascript"; setScript.src = "MY EXTERNAL JS URL HERE"; headID.appendChild(setScript);[/quote] [b]JS 2[/b] [quote]var setScript = document.createElement("script"); setScript.type = "text/javascript"; setScript.src = "MY EXTERNAL JS URL HERE"; document.getElementsByTagName("head")[0].appendChild(setScript);[/quote] or this... [b]JS 3[/b] [quote]function injectjs(){ var setScript = document.createElement("script"); setScript.type = "text/javascript"; setScript.src = "MY EXTERNAL JS URL HERE"; document.getElementsByTagName("head")[0].appendChild(setScript); }injectjs();[/quote] I know they seem similar... That's why i said it's crazy... =D all of them works fine in IE using the standard linker and not thru php... but i really like your php idea of hiding codes coz it's very usefull for newbie rippers hehehh... :thumbsup: I'm using the JS 3 now and observing it on IE... :penguin:

Pages: 123

Board footer

© 2024 F Talk

Current time is 15:55

[ 12 queries - 0.013 second ]
Privacy Policy