SchokoBrunnen
Mitglied
Hey,
ich habe folgenden Code:
Den würde ich gerne in eine PHP Seite einbinden.
Also diese Style Sachen könnte ich auch in die CSS Datei einfügen, aber geht das auch so?
In den Bereich wo z.B. "0 Taler" steht muss ein PHP Code rein:
Preis: ".$price." Taler
Nur als Beispiel! Das kriege ich aber auch noch alleine hin. ;ugl
ich habe folgenden Code:
HTML:
<style>.furni_box { position: relative; border: 1px solid #999; border-radius: 6px; box-shadow: 0px 2px 0px #B5B5AF; background-color: #F3F3F3; background-repeat: no-repeat; background-position: center; width: 185px; height: 158px; margin: 4px 4px 6px 4px; display: block; float: left; cursor: pointer;}.furni_box:hover { background-color: #DEDEDE;}.furni_box:hover div { visibility: visible;}.furni_details { visibility: hidden; position: absolute; top: -1px; left: -1px; width: 183px; border: 1px solid #999999; border-top-right-radius: 6px; border-top-left-radius: 6px; background-color: #FFFFFF; box-shadow: 0px 5px 8px #666; padding: 1px; margin: 0px; z-index: 100; font-size: 11px; color: #444; overflow: hidden;}.furni_box_debatte { position: relative; border: 1px solid #999; border-radius: 6px; box-shadow: 0px 2px 0px #B5B5AF; background-color: #F3F3F3; background-repeat: no-repeat; background-position: center; width: 215px; height: 200px; margin: 0px; display: block; float: left;}.furni_box_debatte:hover { background-color: #DEDEDE;}.furni_box_debatte:hover div { visibility: visible;}.price_timeline { visibility: hidden; position: absolute; top: -1px; left: -1px; width: 205px; border: 1px solid #999999; border-top-right-radius: 6px; border-top-left-radius: 6px; background-color: #FFFFFF; padding: 5px; margin: 0px; z-index: 100; font-size: 11px; color: #444; box-shadow: 0px 5px 8px #666;}
.price_tag { position: absolute; bottom: 0px; right: 0px; width: 65px; height: 25px; border-top: 1px solid #999; border-left: 1px solid #999; border-top-left-radius: 6px; border-bottom-right-radius: 6px; box-shadow: inset 0.5px 0.5px 0.5px 0.5px #B5B5AF; background-color: #FFF; text-align: center; line-height: 25px; font-family:Verdana,Arial,Helvetica,sans-serif!important; font-size: 13px; font-weight: bold; color: #5B5B5B; z-index: 50;}.price_label_up { color:#008B00; background-color:#CCFFCC; padding:2px; border:1px solid #008B00; text-align:center; position:absolute; top: -1px; right: -1px; z-index:99; border-top-right-radius: 6px; box-shadow: inset 0.5px 0.5px 0.5px 0.5px #B5B5AF;}.price_label_down { color:#990000; background-color:#FFF0F0; padding:2px; border:1px solid #990000; text-align:center; position:absolute; top: -1px; right: -1px; z-index:99; border-top-right-radius: 6px; box-shadow: inset 0.5px 0.5px 0.5px 0.5px #B5B5AF;}</style>
<!-- Ende Online-Liste // Anfang neuer Eintrag --> <div class="furni_box" style="background-image: url(http://www.habbotimes.net/site/scripts/habboimager/habbo.php?user=test&loc=0&act=0&gest=agr&hdir=3&dir=2);" id="1467" ontouchstart="showHiddenDiv('det_1467');"> <div id="det_1467" class="furni_details" ontouchstart="window.location.href='index.php?site=48&dfurni=1467';"><table cellpadding="2" cellspacing="3" width="100%"> <tr> <td valign="top" align="center" width="36" height="36"></td> <td class="furni_details_name"><b>test</b><br><i>nochmal test</i></td> </tr> <tr> <td align="center" valign="top"><img src="uploads/images/Anderes/buy_price.gif"></td> <td class="text_left_middle">0 Taler</td> </tr> </table></div> <div class="price_tag">normaler tag</div> <div class="price_label_up">+up</div> </div> <!-- Ende letzter Eintrag // Anfang neuer Eintrag -->
Den würde ich gerne in eine PHP Seite einbinden.
Also diese Style Sachen könnte ich auch in die CSS Datei einfügen, aber geht das auch so?
In den Bereich wo z.B. "0 Taler" steht muss ein PHP Code rein:
Preis: ".$price." Taler
Nur als Beispiel! Das kriege ich aber auch noch alleine hin. ;ugl