|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (7 bit)
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 |
|
|
|
|
|
#2 |
|
Member (7 bit)
Join Date: Jun 2001
Location: Atlanta GA
Posts: 127
|
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! |
|
|
|
|
|
#3 |
|
Member (7 bit)
Join Date: Jun 2001
Location: Atlanta GA
Posts: 127
|
Lets try again.....
/ / |
|
|
|
|
|
#4 |
|
Member (7 bit)
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 |
|
|
|
|
|
#5 | |
|
Member (11 bit)
Join Date: Mar 1999
Location: Sault Ste. Marie, Ontario Canada
Posts: 1,122
|
As taken from post by Mosquito in the distributed computing forum.
Quote:
__________________
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. |
|
|
|
|
|
|
#6 |
|
Member (7 bit)
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. |
|
|
|
|
|
#7 |
|
Member (11 bit)
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. |
|
|
|
|
|
#8 |
|
SQL nutcase
|
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>
|
|
|
|
|
|
#9 |
|
Staff
Premium Member
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 |
|
|
|
|
|
#10 |
|
Member (11 bit)
Join Date: Mar 1999
Location: Sault Ste. Marie, Ontario Canada
Posts: 1,122
|
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. |
|
|
|
|
|
#11 |
|
Member (7 bit)
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.
|
|
|
|
|
|
#12 |
|
Member (11 bit)
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. |
|
|
|
|
|
#13 |
|
Member (11 bit)
Join Date: Mar 1999
Location: Sault Ste. Marie, Ontario Canada
Posts: 1,122
|
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.
|
|
|
|
|
|
#14 |
|
Member (7 bit)
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
|
|
|
|
|
|
#15 |
|
Member (11 bit)
Join Date: Mar 1999
Location: Sault Ste. Marie, Ontario Canada
Posts: 1,122
|
Ya, I'm using IE6.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|