Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Window Size & Removing Toolbars
Old 08-03-2006, 04:54 AM Window Size & Removing Toolbars
Skilled Talker

Posts: 58
Trades: 0
Hi,

How do I specify that my window must only be 500 x 500 and that there should be no toolbars, and that the user can not right click?

Thanx
Llama is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-03-2006, 07:27 AM Re: Window Size & Removing Toolbars
ChipJohns's Avatar
I don't know! Do you?

Posts: 488
Name: Chip Johns
Location: Savannah Georgia
Trades: 0
Try this to resize a window and to turn of scroll bars, etc. You should be able to figure out how to set the parameters. Pretty obvious.

----code---

<a href="#" onClick="MyWindow=window.open('filename.htm','MyWindow','toolbar=no,location=no,directories=no,status=no ,menubar=no,scrollbars=no,resizable=no,resizable=n o,width=500,height=500,left=0,top=0');return false;">Link Text Goes Here<a/>


----end code---

As far as the right click. It doesn't really secure anything so I don't use it. Thus I have not taken the time to learn the best way to do it. If people want any of the stuff on your pages, they are going to get it. Yo ucan't really stop them.

Hope this helps.
ChipJohns is offline
Reply With Quote
View Public Profile Visit ChipJohns's homepage!
 
Old 08-03-2006, 09:16 AM Re: Window Size & Removing Toolbars
saadatshah's Avatar
Extreme Talker

Posts: 215
Name: Syed Saadat Ali
Location: Lahore, Pakistan
Trades: 0
ChipJohns has wrote about the window stuff. Let me add the right click disabling javascript.

Code:
 
<script language=JavaScript>
<!--
//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit Dynamic Drive DHTML(dynamic html) & JavaScript code library
var message="Function Disabled!";
///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
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("alert(message);return false")
// --> 
</script>
simple add this script to the body of your html page. Happy Coding!
__________________
- -- --- ---- ----- ------ ------- ---------------
If you have knowledge, let others light their candles in it.
saadatshah is offline
Reply With Quote
View Public Profile Visit saadatshah's homepage!
 
Old 08-03-2006, 02:32 PM Re: Window Size & Removing Toolbars
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
No right-click scripts are a royal pain. I use right-click for everything, to view source, to go forwards and backwards, etc. etc. It drives me nuts when I get to some page and it has a 'no right-click' script on it. If you're trying to protect images, watermark them. I can get around a no-right-click script.. all I have to do is disable JS so they are not secure by any stretch of the imagination.

Why are you taking away a visitors ability to navigate your site by taking away all the toolbars ??? That is so counter to usability and accessibility.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 08-03-2006, 04:03 PM Re: Window Size & Removing Toolbars
ChipJohns's Avatar
I don't know! Do you?

Posts: 488
Name: Chip Johns
Location: Savannah Georgia
Trades: 0
Listen to LadynRed Llama. They are a Royal pain. It is right up there with the
scripts that lock you out of selecting the text on a web page.

<rant>
My analagy of these limitations is to putting speed bumps on interstate
highways. They don't belong there! They were designed for parking lots, not
keeping the speed in check on highways.


This is the Internet, the World Wide Web, not print. The things that we may
view as a limitation as a develper/designer are the same things we like as a
surfer... We need to design web sites for the surfer/visitor. When we start
making our web sites using the things that we like as a Web site user and not
as a creative designer, we will begin to make Web sites that are truly great...

A designer that can make a page look great in every browser and on any
system is a great designer. A designer that works to make a web page look the
same
on every browser and on every system, just doesn't get what the Web is
all about, and is NOT a good designer.
</rant>

Back to the topic: The people who may want to extract your content are not
going to be stopped, they will get it. The people who are limited by the
restrictions you put on your site will not live with them and will leave...

---
A little about the browser window controls. This is usually okay for a pop-up
window or for some special purpose, but to design a site around using this
feature as a part of the design of the site is considered bad design. A Web site
design should be confined to the space inside the browser window. And, leave
the controls up to the user... Otherwise, you will prove to do do more than
alienate your user, and they will not stay on your site...
ChipJohns is offline
Reply With Quote
View Public Profile Visit ChipJohns's homepage!
 
Old 08-03-2006, 07:22 PM Re: Window Size & Removing Toolbars
moondog's Avatar
Ultra Talker

Posts: 256
Location: Croatia
Trades: 0
I agree with Lady and Chip!

What's the purpose of "no right click"? C'mon, grow up!
Web is open media and there's no reason to hide something, especially with "no right click"!





Last edited by moondog; 08-03-2006 at 07:25 PM..
moondog is offline
Reply With Quote
View Public Profile
 
Old 08-04-2006, 05:03 AM Re: Window Size & Removing Toolbars
Skilled Talker

Posts: 58
Trades: 0
To be honest with you moondog, its not a matter of growing up at all...

This is also not a site for the web, it is an internal site, and the place where I thought i might use it, is on a page that displays a password, which is confidential. Only the user supposed to see it should see it.

So, I have got a time out on the site, i thought with disabling the right click, I can perhaps stop the user from printing or copieing the password. I know that it will never be 100% secure, but I would like to make it as difficult for the user to have the password anywhere else than what he sees on the screen.

I know he can still write it down on paper, but, hey.. I thought it might be a good and simple thing to implement anyhow... , but it seems it is more complicated, and thus not worth the time...

but anyway, thanx for your response.
Llama is offline
Reply With Quote
View Public Profile
 
Old 08-04-2006, 03:10 PM Re: Window Size & Removing Toolbars
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
If the PW is being displayed as plain text rather than the usual *********. It may be easier to just obscure the password.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 08-04-2006, 03:14 PM Re: Window Size & Removing Toolbars
moondog's Avatar
Ultra Talker

Posts: 256
Location: Croatia
Trades: 0
Sorry LLama..I apologize..
but I just talk about 'no right click'

once again, sorry
moondog is offline
Reply With Quote
View Public Profile
 
Old 08-07-2006, 08:37 AM Re: Window Size & Removing Toolbars
saadatshah's Avatar
Extreme Talker

Posts: 215
Name: Syed Saadat Ali
Location: Lahore, Pakistan
Trades: 0
Its good to accept one's mistake
__________________
- -- --- ---- ----- ------ ------- ---------------
If you have knowledge, let others light their candles in it.
saadatshah is offline
Reply With Quote
View Public Profile Visit saadatshah's homepage!
 
Old 08-07-2006, 10:22 AM Re: Window Size & Removing Toolbars
Skilled Talker

Posts: 58
Trades: 0
hi moondog,

no need to appologize, i really appreciate you guys giving inputs!

Thanx again!
Llama is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Window Size & Removing Toolbars
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.51161 seconds with 12 queries