You last visited: Today at 22:36
Advertisement
Hilfe bei HTML
Discussion on Hilfe bei HTML within the Web Development forum part of the Coders Den category.
10/01/2012, 19:35
#1
elite*gold: 13
Join Date: Feb 2010
Posts: 1,350
Received Thanks: 239
Hilfe bei HTML
Hey,
ein Freund von mir hat ein paar Probleme mit seiner Website!
,falls man da oben versucht zu scrollen, scrollen nur die Bilder aber der Text sollte mitscrollen.
Der Quellcode:
.
PHP Code:
<?php
// Twitch.tv Stream Online überprüfung
$twitch = "http://88.198.183.151/bplus/live2.php?live_id=" ;
// own3d.tv Stream Online überprüfung text="#FFFFFF" link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF"
$own3d = "http://88.198.183.151/bplus/live.php?live_id=" ;
// Viewer Counter Owned
$own3dviewer = "http://88.198.183.151/bplus/vcown.php?live_id=" ;
//Stream oben
//$twitchs = "http://88.198.183.151/bplus/twitchstream.php?live_id=";
?>
<head>
<style type="text/css">
div { color:black; }
a.linkb:link,a.linkb:visited, a.linkb:hover, a.linkb:active {color:#000000;}
a.linkw:link,a.linkw:visited, a.linkw:hover, a.linkw:active {color:#ffffff;}
.streamericon {
height: 57px;
width: 100px;
}
</style>
</head>
<html>
<!-- <meta http-equiv="refresh" content="3600; URL=http://dailyredmoan.de"> -->
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="PRIVATE">
<title>dailyredmoan.de</title>
<center>
<body style="background-image:url(bg8.png); background-repeat:no-repeat; background-position:top center">
<!-- body style="background:#D8D8D8" -->
<!-- <div style="background-image:url(background2.png); background-repeat:repeat-y; background-position:bottom center"> -->
<font face="times new roman">
<br>
<table border="0">
<tr style="color:white">
<td valign="top" width="310">
<div style="width:310px; height:300px; overflow:auto;">
<?php
class example {
public function test ( $name , $id , $bild , $bildformat , $type ){
if ( $type == "twitch" ){
$url = "http://api.justin.tv/api/stream/list.json?channel= $id " ;
$streamData = json_decode ( file_get_contents ( "http://api.justin.tv/api/stream/summary.json?channel= $id " ), true );
$Viewers = $streamData [ 'viewers_count' ];
$html = file_get_contents ( $url );
if ( $html == "[]" ) {
} else {
echo "<img src=\"streamericons/ $bild . $bildformat \" class=\"streamericon\"> <a href=\"http://88.198.183.151/bplus/twitchstream.php?live_id= $id \" target=\"Streamshower\" class=\"linkw\" style=\"position: absolute; top; left;\"> $name <br>Viewers: $Viewers </a><br>" ;
}
}
else {
$url = "http://api.own3d.tv/liveCheck.php?live_id= $id " ;
$xml = simplexml_load_file ( $url );
$Viewers = $xml -> liveEvent -> liveViewers ;
$isLive = $xml -> liveEvent -> isLive ;
if ( $isLive == "true" ) {
echo "<img src=\"streamericons/ $bild . $bildformat \" class=\"streamericon\"> <a href=\"http://88.198.183.151/bplus/ownstream.php?live_id= $id \" target=\"Streamshower\" class=\"linkw\" style=\"position: absolute; top; left;\"> $name <br>Viewers: $Viewers </a><br>" ;
}
}
}
public function test2 ( $name , $id , $bild , $bildformat , $type ){
if ( $type == "twitch" ){
$url = "http://api.justin.tv/api/stream/list.json?channel= $id " ;
$streamData = json_decode ( file_get_contents ( "http://api.justin.tv/api/stream/summary.json?channel= $id " ), true );
$html = file_get_contents ( $url );
if ( $html == "[]" ) {
echo "<img src='offline.png' alt='bild'> <a href=\"http://88.198.183.151/bplus/twitchstream.php?live_id= $id \" target=\"Streamshower\" class=\"linkb\"> $name </a><br>" ;
} else {
}
}
else {
$url = "http://api.own3d.tv/liveCheck.php?live_id= $id " ;
$xml = simplexml_load_file ( $url );
$isLive = $xml -> liveEvent -> isLive ;
if ( $isLive == "false" ) {
echo "<img src='offline.png' alt='bild'> <a href=\"http://88.198.183.151/bplus/ownstream.php?live_id= $id \" target=\"Streamshower\" class=\"linkb\"> $name </a><br>" ;
}
}
}
}
//TSM
$class = new example ();
$class -> test ( "TSM Tournaments" , TSMTournaments , solomid , png , twitch );
$class -> test ( "TSM Dyrus" , tsm_dyrus , solomid , png , twitch );
$class -> test ( "TSM Dyrus #2 Stream" , whyhellotheredyrus , solomid , png , twitch );
$class -> test ( "TSM TheOddOne" , tsm_theoddone , solomid , png , twitch );
$class -> test ( "TSM Reginald" , tsm_reginald , solomid , png , twitch );
$class -> test ( "TSM Chaox" , tsm_chaox , solomid , png , twitch );
$class -> test ( "TSM Xspecial" , tsm_xpecial , solomid , png , twitch );
// Andere
$class -> test ( "Forellenlord" , forellenlord , unbekannt , jpg , twitch );
$class -> test ( "Phunk Royal" , 22515 , unbekannt , jpg , own3d );
$class -> test ( "Forellenlord" , forellenlord , unbekannt , jpg , twitch );
$class -> test ( "MLG League of Legends" , mlglol , mlg , jpg , twitch );
$class -> test ( "Redmercy" , redmercylol , unbekannt , jpg , twitch );
$class -> test ( "Guardsmanbob" , 34046 , guardsmanbob , jpg , own3d );
//DLdLZ
$class -> test ( "Scännää" , 260862 , unbekannt , jpg , own3d );
$class -> test ( "Rzut" , 362714 , unbekannt , jpg , own3d );
$class -> test ( "finalgamer" , 16044 , unbekannt , jpg , own3d );
//CLG
$class -> test ( "CLG Froggen" , 112348 , Froggen , jpg , own3d );
$class -> test ( "CLG Wickd" , 18755 , Wickd , jpg , own3d );
$class -> test ( "CLG Yellowpete" , 194946 , Yellowpete , jpg , own3d );
$class -> test ( "Doublelift" , 13573 , Doublelift , jpg , own3d );
$class -> test ( "CLG Voyboy" , 227377 , VoyBoy , jpg , own3d );
$class -> test ( "CLG HotshotGG" , 13574 , hotshotgg , jpg , own3d );
//Crs
$class -> test ( "Crs Nyjacky" , 340259 , Nyjacky , jpg , own3d );
$class -> test ( "Crs Angush" , 340246 , Angush , jpg , own3d );
$class -> test ( "Crs Hubert" , 367744 , Curse , jpg , own3d );
$class -> test ( "Crs SaintVicious" , 340254 , SaintVicious , jpg , own3d );
$class -> test ( "Crs Westrice" , 340253 , Westrice , jpg , own3d );
$class -> test ( "Crs Salce" , 367742 , Curse , jpg , own3d );
$class -> test ( "Crs Malunoo" , 340269 , Curse , jpg , own3d );
//SK
$class -> test ( "SK ocelote" , 2721 , ocelote , jpg , own3d );
$class -> test ( "SK kev1n" , 265554 , kev1n , jpg , own3d );
$class -> test ( "SK YoungBuck" , 167909 , YoungBuck , jpg , own3d );
$class -> test ( "SK Trophy" , 269587 , sk , jpg , own3d );
?>
</div>
</td>
<td valign="top" width="700">
<iframe src="stream.png" name="Streamshower" width="596" height="332" marginheight="0" marginwidth="0" border="0">
<p>Ihr Browser kann leider keine eingebetteten Frames anzeigen</p>
</iframe>
<br>
<br>
<br>
</td>
</tr>
</table>
<div style="color:black">
<?
$class -> test2 ( "SK ocelote" , 2721 , ocelote , jpg , own3d );
$class -> test2 ( "SK kev1n" , 265554 , kev1n , jpg , own3d );
$class -> test2 ( "SK YoungBuck" , 167909 , YoungBuck , jpg , own3d );
$class -> test2 ( "SK Trophy" , 269587 , sk , jpg , own3d );
?>
<table border="0">
</tr>
<td valign="top" width="420pt">
<h1>Nützliche Webseiten</h1>
<h2>
<p><a href="http://lolcounter.com/" target="_blank" class="linkb">lolconter.com</a></p>
<p><a href="http://www.lolking.net/" target="_blank" class="linkb">lolking.net</a></p>
<p><a href="http://www.solomid.net/" target="_blank" class="linkb">solomid.net</a></p>
</h2>
<br>
<a href="http://www.dailyredmoan.de/DLdLZ.php" class="linkb"><h1>Team DLdLZ</h1></a>
<!-- <br>
<h1>TeamSpeak Server</h1>
<iframe allowtransparency="true" src="http://88.198.183.151/subdomains/ts3.pc-help4.ch/tsviewpub.php?skey=0&port=9987&showicons=right&bgcolor=ffffff&fontcolor=000000" style="height:100%;width:100%" frameborder="0">Your Browser will not show Iframes</iframe>
-->
</td>
<td valign="top" width="320pt">
<h1>Musik Playlists</h1>
<p><a href="http://www.youtube.com/watch?v=IGwq5ADhxMA&feature=share&list=PLF722A0C8C00A6AE4" target="_blank" class="linkb"><h2>Musik Playlist #1</h2></a></p>
<p><a href="http://www.youtube.com/watch?v=0RrtY2lpf40&feature=share&list=PL1CBF268FC68F8A2F" target="_blank" class="linkb"><h2>Musik Playlist #2</h2></a></p>
<p><a href="http://grooveshark.com/#!/playlist/ATN+ForellenLord+s+Streamplaylist/76572162" target="_blank" class="linkb"><h2>Musik Playlist #3</h2></a></p>
<p><a href="http://www.youtube.com/watch?v=jU_H6M4tvPw&feature=share&list=PLh5p_RutNeW8XdcR4ewRPxGCLxp3AsXeD" target="_blank" class="linkb"><h2>Musik Playlist #4</h2></a></p>
<p><a href="http://guardsmanbob.com/bobradio.php" target="_blank" class="linkb"><h2>BobRadio</h2></a></p>
<br>
<p>F**KING SCHWERER HTML/PHP Code by finalgamer</p>
</td>
<td valign="top" width="265">
</td>
</tr>
</table>
</div>
</font>
</body>
</center>
</html>
Der wichtige Teil fängt ab Zeile 43 and und geht bis Zeile 134.
Außerdem wäre es nett, wenn mir einer verraten könnte wie man es schaffen würde die Seite schneller zum laden zu kriegen :D.
Quote:
Deklarier sie als string, dann sollte es funktionieren.
Kannst du dies bitte an einem Beispiel verdeutlichen?
10/01/2012, 23:45
#2
elite*gold: 0
Join Date: Sep 2005
Posts: 427
Received Thanks: 87
PHP Code:
echo "<img src=" http : //www.elitepvpers.com/forum/web-development/web-development/web-development/web-development/web-development/.." style =\ "float:left;padding:0 10px 10px 0;\"> <a href=\"..\" style=\"float:left;;\">... <br style=\"clear:left;\">bla: ...</a><br>" ;
Folgende Style Definitionen ändern
img -> float:left;padding: 0 10px 10px 0;
a -> float:left;
br -> clear:left;
Ändert das und der Text scrollt mit
10/02/2012, 01:08
#3
elite*gold: 1329
Join Date: Jun 2009
Posts: 1,873
Received Thanks: 960
nunja... du solltest dir nochmal anschaun, was wo hin gehört. Ein Grundgerüst für HTML kann z.B. so aussehen:
Code:
<!DOCTYPE HTML>
<html>
<head>
<title></title>
<style></style>
<script></script>
</head>
<body>
</body>
</html>
Similar Threads
Html Hilfe
07/10/2012 - Web Development - 3 Replies
Hallo,
Ich brächte eure Hilfe.
Ich bin ein anfänger in Sachen html und versuche mich gerade an einer kleinen Seite.
Auf dieser Seite ist ein Bild eingebunden mit mehreren Kästchen nun will ich das wenn man auf die Kästchen klickt auf eine neue Seite kommt also damit meine ich das das Bild als navigation dient ich hoffe ihr könnt mir helfen .
~cLx
[B] 20 e*G [S] Hilfe in HTML/CSS
04/22/2012 - elite*gold Trading - 1 Replies
Abend.
Ich bekomme leider kein Background in meinen Script hin.
Ich habs schon per HTML und CSS probiert, aber ich schaffs nicht!
Wer sich die 20 eG verdienen möchste schreibt mir bitte eine PN, ich schicke euch dann meine Teamviewer Daten.
Danke :)
Quicknation.
Hilfe Bei HTML
03/14/2012 - Web Development - 4 Replies
Ich brauche Hilfe,
nämlich will ich ein HTML Admin Panel machen.
Das ich meine Homepage online bearbeiten kann.
Im Prinzip reicht mir ja so was wie ne TextBox mit dem ich dann die HTML Dateien auf meinem Server bearbeiten kann.
Ich wär euch dankbar wenn ihr mir helfen könntet!
~D317H34VY aka. Timo
HTML Hilfe
04/07/2011 - Web Development - 3 Replies
Hey Leute.
Ich bin gerade am schreiben einer Website und habe ein gedownloadetes Video eingefügt aber ers wird nicht ganz gezeigt also die Schrift ist teilweise über dem Rand also nicht zu sehen hier ist der Code:
<img src="img/Untitled-3.png" alt="Minecraft Skin" style="margin-left:-230px; margin-top:-100px; "/>
Wie kann ich das Video im vollen Vormat sehen.
mfg
Hilfe HTML
03/12/2011 - Web Development - 9 Replies
Hey Leute.
Wir sind in der Schule am HTML Programmieren also wir sollen uns das eig. selbst beibringen habe eine Frage.
Also ich mache die Homepgae über Minecraft deshalb wollen wir auf der Front Seite ein Video davon haben in der Mitte der Seite.
Wie genau mache ich das?
Wir sollen das nur mit dem Editor machen.
All times are GMT +2. The time now is 22:36 .