Mein projekt wäre so ein vista gadget mit suche rss und neue beitrage für dieses forum hier.
Orginal html
Wenn jemand so nett wäre Danke
Orginal html
Nun zu meiner frage möcht denn code so umschreiben das ich ihn hier am board anwenden kann!:bb#11:<HTML>
</HEAD>
<marquee scrollamount="2" scrolldelay="10">
<a href="http://www.winvista-forum.de"><img src="/titel.png" alt="Grafik" style="border: 0px" style="margin-bottom:7px;"> </span>
</marquee>
<a href="http://www.winvista-forum.de/board/wbb/index.php?page=UsersOnline"><img src="/weristonline.png" alt="Wer ist Online?" style="border: 0px" style="margin-bottom:5px"style="position:absolute; top:45px; left:8px;"></a></span>
<a href="http://www.winvista-forum.de/board/wbb/index.php?form=search&action=unread"><img src="/neuebeitraege.png" alt="Ungelesene Beiträge" style="border: 0px" style="margin-bottom:3px" style="position:absolute; top:75px; left:8px;"></a> </span>
<style type="text/css">
<!--
html, body
{
margin: 7;
padding: 0;
}
-->
</style>
</BODY>
<HEAD>
<script>
System.Gadget.settingsUI = "Einstellungen.html";
System.Gadget.onSettingsClosed = SettingsClosed;
function openWebsite() {
System.Shell.execute("http://www.winvista-forum.de/board/wbb" );
}
function execute() {
System.Shell.execute("http://www.winvista-forum.de/board/wbb/index.php?form=search&q=" + document.getElementById('keywords').value );
document.getElementById('keywords').value = "Suche..."
document.getElementById('keywords').style.setAttribute("color", "#dcdcdc", "false");
}
function SettingsClosed() {
variableName = System.Gadget.Settings.read("SuchTyp");
init();
}
</script>
<script language="javascript" type="text/javascript">
function init()
{
document.getElementById('keywords').value = "Suche..."
document.getElementById('keywords').style.setAttribute("color", "#dcdcdc", "false");
}
function KeyDown(event)
{
if (event.keyCode == 13) {
execute();
document.getElementById('keywords').focus();
}
}
function doBeginInput()
{
document.getElementById('keywords').style.setAttribute("color", "#000000", "false");
document.getElementById('keywords').value = "";
document.getElementById('keywords').focus();
}
</script>
</HEAD>
<BODY onLoad="init()" ondblclick="openWebsite()" style="width:130px;height:160px;overflow:none;background:url('Background.png')">
<input type="text" style="position:absolute; top:110px; left:15px;" style="width:90px;margin-top:14px;" id="keywords" onKeyDown="javascript:KeyDown(event)" onMouseDown="doBeginInput()"/ ><img src="submitS.png" border:0px;" alt="Absenden" width="16" height="16" style="position:absolute; top:127px; left:106px;" onClick= execute()">
</BODY>
<html>
<head>
<script language="javascript" type="text/javascript">
System.Gadget.Flyout.file = "Flyout.html";
var maxWidth, maxHeight;
var imageWidth, imageHeight;
function flyoutShowing()
{
System.Gadget.Flyout.document.parentWindow.frame.innerHTML = "<iframe width='500' height='500' frameborder='0' src='"+url+"'></iframe>";
}
function init() {
var url = "";
imgSrc.src = "/rss_feed.png";
getImage(true, true);
}
function getImage(w, h) {
maxWidth = w;
maxHeight = h;
setBodySize();
}
function setBodySize() {
var bodyWidth, bodyHeight
var img = new Image();
img.src = imgSrc.src;
if (img.width+img.height > 0)
{
imageWidth = img.width;
imageHeight = img.height;
if (maxWidth+maxHeight > 0)
{
if (imageWidth>imageHeight) {
bodyWidth = maxWidth;
bodyHeight = maxWidth/imageWidth*imageHeight;
if (bodyHeight>maxHeight) {
bodyWidth = maxHeight/bodyHeight*bodyWidth;
bodyHeight = maxHeight;
}
} else {
bodyHeight = maxHeight;
bodyWidth = maxHeight/imageHeight*imageWidth;
if (bodyWidth>maxWidth) {
bodyHeight = maxWidth/bodyWidth*bodyHeight;
bodyWidth = maxWidth;
}
}
imgSrc.style.width = bodyWidth - 12;
imgSrc.style.height = bodyHeight - 12;
gBackground.width = bodyWidth;
gBackground.height = bodyHeight;
} else {
bodyWidth = imageWidth;
bodyHeight = imageHeight;
}
document.body.style.width = bodyWidth;
document.body.style.height = bodyHeight;
} else
window.setTimeout(setBodySize, 0);
img = null;
}
</script>
</head>
<body onLoad="init()" style="margin:0px">
<img id="imgSrc" onClick="System.Gadget.Flyout.show=true;" style="position:absolute; top:98px; left:6px; -ms-interpolation-mode:bicubic;"/>
</body>
</html>
</HTML>
Wenn jemand so nett wäre Danke
Zuletzt bearbeitet: