Author Topic: [MOD] Full Screen  (Read 2544 times)

0 Members and 1 Guest are viewing this topic.

Offline vipersgarden

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
[MOD] Full Screen
« on: September 21, 2007, 04:54:58 PM »
Hi all,

this is no really mod, but maybe interesting for some of you!

Two buttons to change between "Full Screen" and "normal mode".

You may check it at my website

Only a few modifications!

Open <your template> -> header.html

Updated, today 18:00 cet
no closing of IE by clicking "normal mode" when in normal mode!

insert this code just above </head>

Code: [Select]
<script>
<!--
function fullwin(){
window.open("http://<your_website>/index.php","bfs","fullscreen,scrollbars")
}
//-->
<!--
function normwin(){
window.close("http://<your_website>/index.php")
}
//-->
</script>

into the <body> you insert two buttons (where you want them):

Code: [Select]
  <input type="button" class="button" onClick="fullwin()" value="Full Screen">
  <input type="submit" class="button" onClick="normwin()" value="Normal mode">

Thatīs all !

Works perfect in IE (complete full Screen)
and nearly perfect in FF (bottom lines still visible)

Mario
« Last Edit: September 21, 2007, 06:13:03 PM by vipersgarden »
Mario Schweiger


Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] Full Screen
« Reply #1 on: September 21, 2007, 08:28:26 PM »
Change:

Quote
<script>
<!--
function fullwin(){
window.open("http://<your_website>/index.php","bfs","fullscreen,scrollbars")
}
//-->
<!--
function normwin(){
window.close("http://<your_website>/index.php")
}
//-->
</script>

for:

Code: [Select]
<script>
<!--
function fullwin(){
window.open("{self}","bfs","fullscreen,scrollbars")
}
//-->
<!--
function normwin(){
window.close("{self}")
}
//-->
</script>

If no work for {self}, use {self_full} .
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?