ever heard?

  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Joined: Jun 15, 2003
  • Posts: 4583
  • Loc: Maryland
  • Status: Offline

Post August 29th, 2003, 8:58 am

let me see a link
Pixel Acres V2
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post August 29th, 2003, 8:58 am

  • Heart
  • Expert
  • Expert
  • User avatar
  • Joined: Aug 29, 2003
  • Posts: 633
  • Loc: Welcome To, Crazy World!
  • Status: Offline

Post August 29th, 2003, 9:00 am

you want the link to where i put it up at?
  • Heart
  • Expert
  • Expert
  • User avatar
  • Joined: Aug 29, 2003
  • Posts: 633
  • Loc: Welcome To, Crazy World!
  • Status: Offline

Post August 29th, 2003, 9:06 am

this is the NON dot.tk address

http://www.geocities.com/grumtek/home.html
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Joined: Jun 15, 2003
  • Posts: 4583
  • Loc: Maryland
  • Status: Offline

Post August 29th, 2003, 9:10 am

try this -

Replace all the document.close with window.close()
Pixel Acres V2
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Joined: Jun 15, 2003
  • Posts: 4583
  • Loc: Maryland
  • Status: Offline

Post August 29th, 2003, 9:14 am

and when using it in frames you will probably need to have parent.window.close()
Pixel Acres V2
  • Heart
  • Expert
  • Expert
  • User avatar
  • Joined: Aug 29, 2003
  • Posts: 633
  • Loc: Welcome To, Crazy World!
  • Status: Offline

Post August 29th, 2003, 9:40 am

I am sorry i have to remind you that I am an idiot.. I understand the change the document.close to window.close but the second one have no idea what to do..

eh.. Dont worry about it man.. I didnt mean to put anyone out on this.. I just put it up if someone just had it on hand..
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Joined: Jun 15, 2003
  • Posts: 4583
  • Loc: Maryland
  • Status: Offline

Post August 29th, 2003, 9:49 am

No deal, I am bored out of my mind anyways, plus the more work I do in javascript the better I become.

Code: [ Select ]
<!--

//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com
///////////////////////////////////
function clickIE4(){
if (event.button==2){
window.close();
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
window.close();
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("window.close();return false;")

// -->
  1. <!--
  2. //Disable right mouse click Script
  3. //By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
  4. //For full source code, visit http://www.dynamicdrive.com
  5. ///////////////////////////////////
  6. function clickIE4(){
  7. if (event.button==2){
  8. window.close();
  9. return false;
  10. }
  11. }
  12. function clickNS4(e){
  13. if (document.layers||document.getElementById&&!document.all){
  14. if (e.which==2||e.which==3){
  15. window.close();
  16. return false;
  17. }
  18. }
  19. }
  20. if (document.layers){
  21. document.captureEvents(Event.MOUSEDOWN);
  22. document.onmousedown=clickNS4;
  23. }
  24. else if (document.all&&!document.getElementById){
  25. document.onmousedown=clickIE4;
  26. }
  27. document.oncontextmenu=new Function("window.close();return false;")
  28. // -->


//edit got it working without two popups, and the right click enter trick wont work!
Pixel Acres V2
  • Heart
  • Expert
  • Expert
  • User avatar
  • Joined: Aug 29, 2003
  • Posts: 633
  • Loc: Welcome To, Crazy World!
  • Status: Offline

Post August 29th, 2003, 10:37 am

yeah its not working for me....
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Joined: Jun 15, 2003
  • Posts: 4583
  • Loc: Maryland
  • Status: Offline

Post August 29th, 2003, 11:01 am

works fine over here...
Pixel Acres V2
  • Heart
  • Expert
  • Expert
  • User avatar
  • Joined: Aug 29, 2003
  • Posts: 633
  • Loc: Welcome To, Crazy World!
  • Status: Offline

Post August 29th, 2003, 11:25 am

hmmmm.. prob due to the fact I am using geocities.. I dont think they support java scripts because I have had other stuff not work on it.. I don't know..
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 8925
  • Loc: Seattle, WA & Phoenix, AZ
  • Status: Offline

Post August 29th, 2003, 11:26 am

JavaScript is run on the clients computer, not the server. That means that Geocities cannot prevent you from using JavaScript.
Ozzu Hosting - Want your website on a fast server like Ozzu?
  • Heart
  • Expert
  • Expert
  • User avatar
  • Joined: Aug 29, 2003
  • Posts: 633
  • Loc: Welcome To, Crazy World!
  • Status: Offline

Post August 29th, 2003, 11:28 am

Bigwebmaster wrote:
JavaScript is run on the clients computer, not the server. That means that Geocities cannot prevent you from using JavaScript.


yeah yeah i see.. But then why would it not work?
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Joined: Jun 15, 2003
  • Posts: 4583
  • Loc: Maryland
  • Status: Offline

Post August 29th, 2003, 11:38 am

try it just on a normal html document and see (just a blank page)
Pixel Acres V2
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 8925
  • Loc: Seattle, WA & Phoenix, AZ
  • Status: Offline

Post August 29th, 2003, 11:39 am

I think your problem is that you forgot to declare that you are starting and ending Javascript. Before you begin you code you need to have this line:

Code: [ Select ]
<script language="JavaScript">
<!--
  1. <script language="JavaScript">
  2. <!--


Then once your code ends and regular HTML starts again you need to have this:

Code: [ Select ]
// -->
</script>
  1. // -->
  2. </script>
Ozzu Hosting - Want your website on a fast server like Ozzu?
  • Heart
  • Expert
  • Expert
  • User avatar
  • Joined: Aug 29, 2003
  • Posts: 633
  • Loc: Welcome To, Crazy World!
  • Status: Offline

Post August 29th, 2003, 11:46 am

hahahaha your right.. I thought it looked funny...


Damn dude.. thanks alot "both"....

works good... it otta piss some people off..
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post August 29th, 2003, 11:46 am

Post Information

  • Total Posts in this topic: 31 posts
  • Users browsing this forum: No registered users and 209 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.