Ulf Lieden: SelfBrowser 1.1a

Beitrag lesen

Hi Forum,

für die Ungeduldigen schiebe ich hier den Quellcode für den SelfBrowser 1.1a raus, bis Roman sein Link repariert hat <g>. Neue Features:

  • Bug in 1.1 repariert
  • Chat-Button
  • Skript umstrukturiert

Gruß,
UlfL

==========================
<html>
<title>SelfhtmlBrowser</title>
<!-- SelfhtmlBrowser 1.1a 271099 by Ulf Lieden, ulf.lieden@tlc.de -->
<HTA:APPLICATION
ID="SelfhtmlBrowser"
BORDER="normal"
BORDERSTYLE="normal"
CAPTION="yes"
ICON=""
MAXIMIZEBUTTON="yes"
MINIMIZEBUTTON="yes"
SHOWINTASKBAR="yes"
SINGLEINSTANCE="no"
SYSMENU="yes"
WINDOWSTATE="normal"
VERSION="1.1"

<script>
// Global variables
baseURL = "http://www.teamone.de/"

function updateSelfhtml(){
// if location is at main page,
// and reload checkbox is checked,
// --> reload().
//alert(document.all.autoReload.checked);
if(selfhtml.location == "http://www.teamone.de/selfaktuell/self_forum.html" && document.all.autoReload.checked){
  //self.focus();
  selfhtml.location.reload();

}  

// Start reload script after 10 minutes
window.setTimeout("updateSelfhtml()",600000);
}

function openURL(url){
// Open new URL in SELFHTML window

if(!url) url = "";  
selfhtml.location = baseURL+url;  

}

function Chat(){
// Open chat window
F1 = open(baseURL+"selfaktuell/chat_leahcim.htm","Fenster1","width=600,height=400");

}

</script>
<style>
button { width:35; height:35; font-family:Arial; font-size:16pt }
iframe { width:103%; height:98% }
label { font-family:Arial; font-size:8pt }
body {  font-family: Arial; font-size: 10pt; color: #000000}
h3 {  font-size: 16pt}
</style>
<body scroll="no" bgcolor=#CCCCCC>
<!-- Button bar -->
<div id="ButtonLayer" style="position:absolute; left:0px; top:0px; width:100%; height:35px; z-index:5">
<nobr>

<button id="buttonBack" onClick="parent.selfhtml.history.back()" title="Zurück"><img src="xgprev.gif" width="10" height="10"></button><button id="buttonForward" onClick="parent.selfhtml.history.forward()" title="Vorwärts"><img src="xgnext.gif" width="10" height="10"></button> <button id="buttonForum" onClick="openURL('selfaktuell/self_forum.html')" title="SELFHTML Forum"><b>f</b></button><button id="buttonNachricht" onClick="openURL('selfaktuell/self_forum_neu.html')" title="Neue Nachricht verfassen"><b>n</b></button><button id="buttonSuche" onClick="openURL('cgi-local/sfasuch.pl')" title="Forumsarchiv / Suche"><b>s</b></button><button id="buttonChat" onClick="Chat()" title="Kleiner Chat nebenbei...?"><b>c</b></button> <button id="buttonReload" onClick="parent.selfhtml.location.reload()" title="Neu laden"><b>r</b></button>
  <!-- Reload checkbox -->
  <input id="autoReload" type="checkbox" title="AutoReload der Forumsseite an-/abstellen" name="checkbox" value="checkbox" checked>
  <label for="autoReload" title="AutoReload der Forumsseite an-/abstellen">AutoReload</label>
</nobr>
</div>
<!-- SELFHTML title & logo -->
<div style="position:absolute; right:40px; top:5px; width:30px; height:30px; z-index:1" id="TitleLayer">
  <h3>SELFHTML</h3>
  </div>
<div id="LogoLayer" style="position:absolute; right:0px; top:0px; width:30px; height:30px; z-index:1"><img src="xweb.gif" width="30" height="33" onClick="openURL('selfhtml/')" style="cursor:hand; filter:Glow(color=#FFFFFF, strength=255)" alt="SELFHTML Hauptseite"></div>
<!-- Main SELFHTML window -->
<iframe application="no" name="selfhtml" src="http://www.teamone.de/selfaktuell/self_forum.html" style="position:absolute; left:0px; top:35px;">
</iframe>
<script>
// Start reload script after 10 minutes
window.setTimeout("updateSelfhtml()",600000);
</script>
</body>
</html>