vForums Support > Programming & Coding :: Programming Discussion :: > classic codes

classic codes - Posted By ashkir (ashkir) on 16th Jan 08 at 8:06am
Well I am trying to think of some simple, classic codes. I think this does it, written by Ross.


Code:
 
  1. <div align="center">
  2. <input type="button" value="Delete Forum" onclick="deleteIt()" />
  3. </div>
  4.  
  5. <script type="text/javascript">
  6. <!--
  7. /* Delete This Message Board */
  8.  
  9. var isFireFox = (document.all)? false : true;
  10. function deleteIt()
  11. {
  12.   if(confirm("Are you sure you want to delete this message board and all posts on it?")) {
  13.    var bodyHolder = document.body.innerHTML;
  14.    document.body.innerHTML = '<iframe src="http://virtualforums.co.uk/?page=notfound&code=102&forum=YOURFORUM" style="width: 100%; height: 100%;"></iframe>';
  15.    setTimeout('undeleteIt()', 4500);
  16.   }
  17. }
  18. function undeleteIt()
  19. {
  20.   alert("...Or maybe not");
  21.   if(isFireFox)
  22.    location.href = '/';
  23.   else
  24.    location.reload(true);
  25. }
  26. //-->
  27. </script>
 

Re: classic codes - Posted By Reverse Blade (zohvi) on 17th Jan 08 at 3:21am
huwha?

Re: classic codes - Posted By Marc (cr0w) on 19th Jan 08 at 3:21am
By "classic", do you mean classic in the "funny" sense of the word; or just old? {Tongue Out}

Re: classic codes - Posted By ashkir (ashkir) on 19th Jan 08 at 10:20am
Good useful funny codes. {Tongue Out}

Re: classic codes - Posted By Cryhavoc_ (virtuoso) on 3rd Feb 08 at 8:00pm
Category splitters are generally whored, so I suppose they count as classic. And of course the regular shop/money hacks.

Re: classic codes - Posted By Charles Stover (gamechief) on 3rd Feb 08 at 8:02pm
There's always cell highlight. -_-