Sidebar

Feedback, Anregungen und Diskussion über Pro-Linux
Post Reply
Message
Author
fs111

Sidebar

#1 Post by fs111 »

Hallo Team!

Wie wäre es mit einem Sidebar für den Mozilla, wo dann immer die neusten News etc. sofort erreichbar sind?

Ich finde so eine Funktion toll.

Grüße fs111

Kai Lahmann

Re: Sidebar

#2 Post by Kai Lahmann »

auuuu ja - tolle Idee! Für Opera geht das übrigens auch (allerdings schwieriger)

Descartes

Re: Sidebar

#3 Post by Descartes »

Ok.
Pro-Linux müsste folgenden JavaScript Code implementieren und dann auf der Webseite irgendwo einen Linux unterbringen um die Sidebar hinzuzufügen:
<a href="javascript:addMozillaPanel()">Sidebar fuer Mozilla</a>

Immer dann, wenn die Pro-Linux Hauptseite aktualisiert wird müsste man dann per Script auch eine aktualisierte Sidebar generieren lassen.

<blockquote><pre><font size="1" face="">code:</font><hr><font face="Courier New" size="2">
Hier das JavaScript:
********************

<script language="JavaScript" type="text/javascript">
<!--
function addMozillaPanel()
{
if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function"))
{
window.sidebar.addPanel ("Pro-Linux", "http://www.pro-linux.de/sidebar_mozilla.html","");
}
else
{
var rv = window.confirm ("Usability-News-Sidebar einzubinden, benoetigen Sie Mozilla "
+ " Wollen Sie Mozilla installieren?");
if (rv)
document.location.href = "http://www.mozilla.org/";
}
}
//-->
</script>


Der Link der das ganze einhängt:
********************************
<a href="javascript:addMozillaPanel()">Sidebar fuer Mozilla</a>



Und ein Beispiel für die Sidebar:
*********************************

<html>
<head>
<title>Pro-Linux Sidebar</title>
<meta http-equiv="refresh" content="216000" />
<meta http-equiv="content-type" content="text/html; charset=iso-8859-15" />
</head>
<body bgcolor="#FFFFFF" topmargin="0" leftmargin="0" marginwidth="0" marginheight="0">
<table width="140" border="0" cellspacing="0" cellpadding="4">
<tr bgcolor="#003366">
<td><font size="4" color="#FFFFFF">Pro-Linux News</font></td></tr>
</table>
<table width="140" border="0" cellspacing="0" cellpadding="4">
<tr bgcolor="#ffffff"><td><a target="_content" href="http://www.pro-linux.de/news/2002/4304.html">Acrobat Reader Version 5 nun auch f&uuml;r Linux</a></td></tr>
<tr bgcolor="#EAEAEA"><td><a target="_content" href="http://www.pro-linux.de/news/2002/4303.html">Pro - Linux: USB Flash Drive und neue Programme</a></td></tr>
<tr bgcolor="#ffffff"><td><a target="_content" href="http://www.pro-linux.de/news/2002/4302.html">OpenBSD 3.1</a></td></tr>
<tr bgcolor="#EAEAEA"><td><a target="_content" href="http://www.pro-linux.de/news/2002/4301.html">GNOME 2.0 Desktop Beta 5</a></td></tr>
</table>
</body></html>
</font><hr></pre></blockquote>

Descartes

Re: Sidebar

#4 Post by Descartes »

die Sidebar sollte natürlich nicht von irgendwelchen Proxies gechached werden:

<head>
<title>Pro-Linux Sidebar</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-15" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="refresh" content="216000" />
<meta name="robots" content="none" />
</head>

Post Reply