[Frage] Wer kann gut html?

space night

Dennou Coil Fan
Otaku Veteran
Mein projekt wäre so ein vista gadget mit suche rss und neue beitrage für dieses forum hier.
Orginal html
<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>
Nun zu meiner frage möcht denn code so umschreiben das ich ihn hier am board anwenden kann!:bb#11:

Wenn jemand so nett wäre Danke
 
Zuletzt bearbeitet:

.fl0w

.:NARU なる:.
Otaku Veteran
hast du das schon mal angeschaut

Forumregeln
Es ist dir erlaubt, neue Themen zu verfassen.
Es ist dir erlaubt, auf Beiträge zu antworten.
Es ist dir erlaubt, Anhänge hochzuladen.
Es ist dir erlaubt, deine Beiträge zu bearbeiten.
BB-Code ist an.
Smileys sind an.
Code ist an.
[B]HTML-Code ist aus.[/B]
Trackbacks are aus
Pingbacks are aus
Refbacks are aus
[/QUOTE]
 

space night

Dennou Coil Fan
Otaku Veteran
ganz genau wie terminator2k2 sagt hatt nix damit zu tun stell einfach mal das gadget on und wer lust hat soll sich die suche html ansehn!
 

.fl0w

.:NARU なる:.
Otaku Veteran
ok sry stimmt da habt ihr recht

also ich habe in der schule html ein halbes jahr lang durchgenommen
und kann einige sachen aber ich weiß nicht wirklich wie man das hier macht
aber ich schaus mir mal an

edit: hab mir es mal angeschaut und wollte fragen ob es wirklich auch
fehlerfrei läuft bei mir spinnt es und dreamweaver findet viel ungültigen code
 
Zuletzt bearbeitet:

space night

Dennou Coil Fan
Otaku Veteran
das hier ist schon die abgeänderte form wenn ich in der suche was eingebe überträgt er mir das eingegebene auf die seite nur sie suche löst sich nicht aus!
hoffe du weißt was ich meine
wenn du das gadget in der sidebar testen willst mußt du denn ordner in verzeichniss c:\programme\vista sidebar\gadgets einfügen.
 

.fl0w

.:NARU なる:.
Otaku Veteran
das hier ist schon die abgeänderte form wenn ich in der suche was eingebe überträgt er mir das eingegebene auf die seite nur sie suche löst sich nicht aus!
hoffe du weißt was ich meine
wenn du das gadget in der sidebar testen willst mußt du denn ordner in verzeichniss c:\programme\vista sidebar\gadgets einfügen.
ich bin ein idiot ich kann es jetzt gar nicht richtig testen ich arbeite gerade mit win xp und nicht mit vista darum kann ich nicht es testen

ps: beachte meinen letzten post
 

terminator2k2

Bite my shiny metal ass!!
urgesteinbanner
HTML:
<HTML>
</HEAD>

<marquee scrollamount="2" scrolldelay="10">
<a href="http://board.world-of-hentai.to"><img src="/titel.png" alt="Grafik" style="border: 0px" style="margin-bottom:7px;"> </span>
</marquee>



<a href="http://board.world-of-hentai.to/online.php"><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://board.world-of-hentai.to/search.php?do=getnew"><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://board.world-of-hentai.to" );
}

function execute() {
System.Shell.execute("http://board.world-of-hentai.to/search.php?query=" + document.getElementById('keywords').value );
document.getElementById('keywords').value = "Suche..."
document.getElementById('keywords').style.setAttri bute("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.setAttri bute("color", "#dcdcdc", "false");
}

function KeyDown(event)
{

if (event.keyCode == 13) {
execute();
document.getElementById('keywords').focus();
}
}

function doBeginInput()
{
document.getElementById('keywords').style.setAttri bute("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;back ground: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.i nnerHTML = "<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>
keine garantie ob es läuft.. und bilder für das teil muss man auch haben
 

.fl0w

.:NARU なる:.
Otaku Veteran
kann es nicht testen aber hab schon einen fehler gefunden

function init()
{
document.getElementById('keywords').value = "Suche..."
document.getElementById('keywords').style.setAttri bute("color", "#dcdcdc", "false");
}

function KeyDown(event)
{

if (event.keyCode == 13) {
execute();
document.getElementById('keywords').focus();
}
}

function doBeginInput()
{
document.getElementById('keywords').style.setAttri bute("color", "#000000", "false");
document.getElementById('keywords').value = "";
document.getElementById('keywords').focus();
}
</script>
 
Zuletzt bearbeitet:

space night

Dennou Coil Fan
Otaku Veteran
vieleicht hast recht ist ja nur teiweise umgeschrieben is klar das der viele fehler findet hab aber auch nur mit dem editor gemacht vieleicht liegts auch daran werd mir jetzt auch dreamviever zulegen vieleich is damit leichter.
.
.
.
EDIT (autom. Beitragszusammenführung) :
.

gleich mal testen:bb#2:
.
.
.
EDIT (autom. Beitragszusammenführung) :
.

hatt einer das schon einer in der sidebar ausprobiert?
 
Zuletzt bearbeitet:

cloxx

éléphant terrible
VIP
habe es mal ausprobiert..

geht alles bis auf den button "absenden"..

und der feed hängt 20 min. nach, letzter beitrag von 19:55 Uhr..

aber gute idee, das ding hat jetzt einen stammplatz in meiner sidebar :)
 

space night

Dennou Coil Fan
Otaku Veteran
schön das noch wer interesse daran hat.
Ja das sind noch so probs dies zu lösen gilt nur die frage wie?
Bin auch nur leie:bb#18:
Mit den feeds ist's auch so nee sache das prob da ist das sich das nicht von allein aktualisiert wirst sehn wenn ich bei meiner gucke bin ich noch auf 16 uhr 57 ausser man startet denn rechner neu da muss nee lösung her!
Bei der suche ist es so das wenn man was eingibt und auf den pfeil drückt (zwar nicht geht) aber mit der return taste dann schon nur ist es so das daß eingegebene übertagen wird nur die suche auf dem board nicht ausgeführt wird.:bb#11:
Ist ja noch in Entwicklung also kanns dauern:bb#13:
 
Zuletzt bearbeitet:
Oben