Go Back   PCMech Forums > Help & Discussion > Internet, Web Applications, & The Cloud

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 07-12-2001, 05:58 PM   #1
Member (7 bit)
 
surfmaster2000's Avatar
 
Join Date: Jun 2001
Location: Atlanta GA
Posts: 127
need a little html/java script help please

Guys, I need help with opening an html page fullscreen with no border other than the vertical scroller. No vertical scroller would be best, But I have not seen a "fullscreen' page yet that does not have it. I have found the following short script, but was wondering if any of you guys knew how to change it to open upon loading of the html page, rather than having a "onclick" button. An instantaneous redirect would work if it was hardly noticable. Below is the code I have come across so far:







Also, is there a way to simulate the pressing of "alt-f4" with a mouse click. I would like to use a button on the page, but so far..the code I have found creates a popup window stating that internet explorer is trying to close the page...bla bla bla. YES/NO. Is there a way to close the window without physically pressing alt-F4, and without recieving a confim window?

Any and all help would be greatly appreciated
Thanks
JJ
surfmaster2000 is offline   Reply With Quote
Old 07-12-2001, 06:02 PM   #2
Member (7 bit)
 
surfmaster2000's Avatar
 
Join Date: Jun 2001
Location: Atlanta GA
Posts: 127
smokin

Sorry, wasn't aware the forum would process code. The script does not appear to work here in the forum, but will if code is pasted in a html format.

The code text- astriks)
*
*

*
*


Thanks again!
surfmaster2000 is offline   Reply With Quote
Old 07-12-2001, 06:10 PM   #3
Member (7 bit)
 
surfmaster2000's Avatar
 
Join Date: Jun 2001
Location: Atlanta GA
Posts: 127
Lets try again.....

/
/

/
/
surfmaster2000 is offline   Reply With Quote
Old 07-12-2001, 06:12 PM   #4
Member (7 bit)
 
surfmaster2000's Avatar
 
Join Date: Jun 2001
Location: Atlanta GA
Posts: 127
OK, Somebody want to clue me in on how to include basic code in my posts, or alternatives?.

Thanks

JJ
surfmaster2000 is offline   Reply With Quote
Old 07-12-2001, 09:05 PM   #5
Member (11 bit)
 
mhayes's Avatar
 
Join Date: Mar 1999
Location: Sault Ste. Marie, Ontario Canada
Posts: 1,122
Cool

As taken from post by Mosquito in the distributed computing forum.

Quote:
If you want to write < or > in a post to be able to quote some html you can use the codes &lt; and &gt;.
__________________
Mike

Life would be great if I didn't have to work to fish!

Last edited by mhayes; 07-12-2001 at 09:07 PM.
mhayes is offline   Reply With Quote
Old 07-12-2001, 09:58 PM   #6
Member (7 bit)
 
surfmaster2000's Avatar
 
Join Date: Jun 2001
Location: Atlanta GA
Posts: 127
ok, well I guess this is the easiest way to do this. Here is the link to the javascript I need help with.
http://wsabstract.com/script/cut123.shtml
I know it's possible,I have seen it done, but just do not know the commands to make into what I want. Just give it a glance, and if you can help, please let me know.

Thanks again,

P.s. don't forget alt-F4 to close the page when you view it.
surfmaster2000 is offline   Reply With Quote
Old 07-12-2001, 11:26 PM   #7
Member (11 bit)
 
mhayes's Avatar
 
Join Date: Mar 1999
Location: Sault Ste. Marie, Ontario Canada
Posts: 1,122
Here is the actual code, not sure on how to do what you want, but would be interested to see the solution.


Code:
<script>
<!--
function fullwin(){
window.open("../index.html","","fullscreen,scrollbars")
}
//-->
</script>
<form>
<input type="button" onClick="fullwin()" value="Open window">
</form>

Last edited by mhayes; 07-12-2001 at 11:33 PM.
mhayes is offline   Reply With Quote
Old 07-13-2001, 03:30 AM   #8
SQL nutcase
 
mosquito's Avatar
 
Join Date: Sep 2000
Location: Belgium
Posts: 1,136
Send a message via AIM to mosquito
this should do the trick:
Code:
<script>
<!--
function fullwin(){
window.open("../index.html","_blank","fullscreen=1,scrollbars=0,toolbar=0,status=0,menubar=0,resizeable=0")
}
//-->
</script>
<form>
<input type="button" onClick="fullwin()" value="Open window">
</form>
check specifications of window.open here http://msdn.microsoft.com/library/de...ods/open_0.asp
mosquito is offline   Reply With Quote
Old 07-13-2001, 07:05 AM   #9
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
Here is your code that I got from the source

lt;script>

<!--

/*Full screen window opener script: Written by Website Abstraction (www.wsabstract.com) More free scripts here*/

function fullwin(){

window.open("../index.html","","fullscreen,scrollbars")

}

//-->

</script>

<form>

<input type="button" onClick="fullwin()" value="Open window">

</form>
__________________

Want to Make $$$$ with your Computer? No Risk! Simply press shift-4 four times in a row
mairving is offline   Reply With Quote
Old 07-13-2001, 12:17 PM   #10
Member (11 bit)
 
mhayes's Avatar
 
Join Date: Mar 1999
Location: Sault Ste. Marie, Ontario Canada
Posts: 1,122
Cool

Try this to open and close, haven't tried full screen on load.


Code:
<script>
<!--
/*Full screen  window opener script: Written by Website Abstraction (www.wsabstract.com) More free scripts here*/
function fullwin(){
window.open("marquee.html","","fullscreen,scrollbars")}
function closewin(){
window.close()}
//-->
</script>
<form>
<input type="button" onClick="fullwin()" value="Open window">
<input type="button" onClick="closewin()" value="Close window">
</form>

Last edited by mhayes; 07-13-2001 at 12:19 PM.
mhayes is offline   Reply With Quote
Old 07-15-2001, 08:44 PM   #11
Member (7 bit)
 
surfmaster2000's Avatar
 
Join Date: Jun 2001
Location: Atlanta GA
Posts: 127
thanks for the help so far guys, but the suggestions do not address my first post. I'm thinking of just surfing to some porn sites so I can get page trapped. That is where I last saw it, from there I will view/steal the code. But still need a way to close a web page with a mouse click if possible, a mouse click that does not present a yes/no window. A way to simulate the pressing of alt-F4. Again, thanks for the help. If you all come up with anything else regarding this, please let me know.
surfmaster2000 is offline   Reply With Quote
Old 07-16-2001, 04:36 AM   #12
Member (11 bit)
 
Rick Hall's Avatar
 
Join Date: Apr 1999
Location: Quebec, Canada
Posts: 1,239
Deleted by Rick Hall
__________________
-------------------------------------------------------------------------
The solutions of today are the problems of tomorrow!
-------------------------------------------------------------------------
Intel Motherboard, Antec 300 case, Intel Q8200 CPU, Antec 650w Truepower trio, WD 640 Blue, WD 750 Black, WD 1T Black, Radeon 4650, 14 in 1 card reader, (2X) LG dvd Super Multi, Acer 223X monitor, Logitech pro 9000 webcam, Logitech MX5500 keyboard and mouse, Intel 2 gigabit Network, Canon IP6600D Printer, Epson V600 Perfection scanner, Linksys WRT54GL router, windows 7, Windows Vista, Windows XP

Last edited by Rick Hall; 07-16-2001 at 04:39 AM.
Rick Hall is offline   Reply With Quote
Old 07-16-2001, 09:30 PM   #13
Member (11 bit)
 
mhayes's Avatar
 
Join Date: Mar 1999
Location: Sault Ste. Marie, Ontario Canada
Posts: 1,122
Cool

Did you try the script I posted? It closes with no prompts. As for opening a default page that way you have me stumped there, you should be able to do it with a redirect.
mhayes is offline   Reply With Quote
Old 07-18-2001, 08:10 PM   #14
Member (7 bit)
 
surfmaster2000's Avatar
 
Join Date: Jun 2001
Location: Atlanta GA
Posts: 127
Mhayes, I did try your script. This is what is diplayed in my browser when I click your "close" button. Are you using a different browser, im IE 5.5
Attached Images
File Type: jpg htmlpage.jpg (44.7 KB, 81 views)
surfmaster2000 is offline   Reply With Quote
Old 07-19-2001, 11:29 PM   #15
Member (11 bit)
 
mhayes's Avatar
 
Join Date: Mar 1999
Location: Sault Ste. Marie, Ontario Canada
Posts: 1,122
Cool

Ya, I'm using IE6.
mhayes is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 06:40 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2