GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Javascript question.... (https://gfy.com/showthread.php?t=62431)

421Fill 05-30-2002 01:52 PM

Javascript question....
 
Is there a way to disable javascript on one's page temporarily... ie. I've got banner exchange code on multiple pages, and the exchanges will be down for a few days... is there a tag I can add to all my pages that will disable it without removing it?

Thanks in advance. :)

Turbo

kenny 05-30-2002 02:16 PM

[script]
function stoperror(){
return true
}
window.onerror=stoperror
[/script]

That will stop a error that all I can do for you

kenny 05-30-2002 02:22 PM

If you take out a bracket or something to fuck up the banner code and slap the no error script on your pages it would be like a javascript disable, someone else probably has a better way:)

dodo 05-30-2002 02:25 PM

Try...

<script>
// use the '//' to comment out a line or

/*

to comment out a block

*/


</script>

:thumbsup

dodo 05-30-2002 02:45 PM

sorry about that... board commented out my code.

do this....

2 forward slashes or to comment out(make the browser ignore) a line or use a forward slash and star and then a star and forward slash to comment out a block.

the code works for javascript too :thumbsup


[script]
PHP Code:

// to comment out a line

/*
your code that will be ignored
more code
*/ 

[/script]

421Fill 05-30-2002 02:46 PM

Quote:

Originally posted by dodo
Try...

<script>
// use the '//' to comment out a line or

/*

to comment out a block

*/


</script>

:thumbsup


You wouldn't happen to be sqee, would you?

thanks Kenny trying that one right now... this was actually for my mom, so she'll let me know if it worked.

kenny 05-30-2002 02:48 PM

Quote:

Originally posted by dodo
Try...

<script>
// use the '//' to comment out a line or

/*

to comment out a block

*/


</script>

:thumbsup

You need to edit your post and put in the no error script:Graucho


All times are GMT -7. The time now is 06:55 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123