To jest tylko wersja do druku, aby zobaczyć pełną wersję tematu, kliknij TUTAJ
phpBB2 by Przemo
Support forów phpBB2 modified by Przemo

HTML/PHP/AJAX/JS - kod htlm w ogłoszeniu

bortysz - 09-03-2009, 20:39
Temat postu: kod htlm w ogłoszeniu
witam
jak przekonwertować kod htlm

z tego linka http://www.klubcorsa.pl/czas/czas.htm

by móc wkleić w ramkę ogłoszenie kod htlm`a i aby poprawnie się wyświetlał na forum
gdy wklejam goły kod htlm na forum obrazki się nie zmieniają - jest statycznie.
z góry dziękuję

Mateusz61 - 09-03-2009, 20:45

bortysz musisz obrazki wyciągnąć z folderu i dać do głównego folderu forum...
albo w kodzie wpisać jak masz na przykład 1.gif dać przed nim /czas/

Matteo - 09-03-2009, 20:45

bortysz, wrzuć w ogłoszenie to.
bortysz - 09-03-2009, 20:51

wrzucam to w ogłoszenie i nie działa licznik stoi w miejscu

Kod:

<!-- THREE STEPS TO INSTALL DIGITAL COUNTDOWN:

  1.  Copy the coding into the HEAD of your HTML document
  2.  Add the onLoad event handler into the BODY tag
  3.  Put the last coding into the BODY of your HTML document  -->

<!-- STEP ONE: Paste this code into the HEAD of your HTML document  -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
//Created by DendE PhisH
function getTime() {
c1 = new Image(); c1.src = "/czas/1c.gif";
c2 = new Image(); c2.src = "/czas/2c.gif";
c3 = new Image(); c3.src = "/czas/3c.gif";
c4 = new Image(); c4.src = "/czas/4c.gif";
c5 = new Image(); c5.src = "/czas/5c.gif";
c6 = new Image(); c6.src = "/czas/6c.gif";
c7 = new Image(); c7.src = "/czas/7c.gif";
c8 = new Image(); c8.src = "/czas/8c.gif";
c9 = new Image(); c9.src = "/czas/9c.gif";
c0 = new Image(); c0.src = "/czas/0c.gif";
Cc = new Image(); Cc.src = "/czas/Cc.gif";
now = new Date();

//ENTER BELOW THE DATE YOU WISH TO COUNTDOWN TO
later = new Date("May 1 2009 0:00:01");

days = (later - now) / 1000 / 60 / 60 / 24;
daysRound = Math.floor(days);
hours = (later - now) / 1000 / 60 / 60 - (24 * daysRound);
hoursRound = Math.floor(hours);
minutes = (later - now) / 1000 /60 - (24 * 60 * daysRound) - (60 * hoursRound);
minutesRound = Math.floor(minutes);
seconds = (later - now) / 1000 - (24 * 60 * 60 * daysRound) - (60 * 60 * hoursRound) - (60 * minutesRound);
secondsRound = Math.round(seconds);

if (secondsRound <= 9) {
document.images.g.src = c0.src;
document.images.h.src = eval("c"+secondsRound+".src");
}
else {
document.images.g.src = eval("c"+Math.floor(secondsRound/10)+".src");
document.images.h.src = eval("c"+(secondsRound%10)+".src");
}
if (minutesRound <= 9) {
document.images.d.src = c0.src;
document.images.e.src = eval("c"+minutesRound+".src");
}
else {
document.images.d.src = eval("c"+Math.floor(minutesRound/10)+".src");
document.images.e.src = eval("c"+(minutesRound%10)+".src");
}
if (hoursRound <= 9) {
document.images.y.src = c0.src;
document.images.z.src = eval("c"+hoursRound+".src");
}
else {
document.images.y.src = eval("c"+Math.floor(hoursRound/10)+".src");
document.images.z.src = eval("c"+(hoursRound%10)+".src");
}
if (daysRound <= 9) {
document.images.x.src = c0.src;
document.images.a.src = c0.src;
document.images.b.src = eval("c"+daysRound+".src");
}
if (daysRound <= 99) {
document.images.x.src = c0.src;
document.images.a.src = eval("c"+Math.floor((daysRound/10)%10)+".src");
document.images.b.src = eval("c"+Math.floor(daysRound%10)+".src");
}
if (daysRound <= 999){
document.images.x.src = eval("c"+Math.floor(daysRound/100)+".src");
document.images.a.src = eval("c"+Math.floor((daysRound/10)%10)+".src");
document.images.b.src = eval("c"+Math.floor(daysRound%10)+".src");
}
newtime = window.setTimeout("getTime();", 1000);
}
//  End -->
</script>

</HEAD>

<!-- STEP TWO: Insert the onLoad event handler into your BODY tag  -->

<BODY onLoad="getTime()" bgcolor="#000000">

<font color="#FFFFFF" size="5">

<!-- STEP THREE: Copy this code into the BODY of your HTML document  -->

</font>

<div align="center">
<h3><font color="#FFFFFF" size="5">Do zlotu FKC pozostało:</font></h3>
</div>

<center>
<table><tr><td bgcolor="black" valign="bottom">
<font color="#FFFFFF" size="5">
<img height=21 src="/czas/0c.gif" width=16 name=x>
<img height=21 src="/czas/0c.gif" width=16 name=a>
<img height=21 src="/czas/0c.gif" width=16 name=b>
<img height=21 src="/czas/Cc.gif" width=9 name=c>

<img height=21 src="/czas/0c.gif" width=16 name=y>
<img height=21 src="/czas/0c.gif" width=16 name=z>
<img height=21 src="/czas/Cc.gif" width=9 name=cz>
<img height=21 src="/czas/0c.gif" width=16 name=d>
<img height=21 src="/czas/0c.gif" width=16 name=e>
<img height=21 src="/czas/Cc.gif" width=9 name=f>
<img height=21 src="/czas/0c.gif" width=16 name=g>
<img height=21 src="/czas/0c.gif" width=16 name=h>
</font>
</td></tr></table>
</center>

<div align="center">
<h4><font color="#FFFFFF" size="5">(Dni : Godzin : Minut : Sekund)</font></h4>
</div>

<font color="#FFFFFF" size="5">


<!-- Script Size:  4.12 KB --></font>

Matteo - 10-03-2009, 16:31

bortysz, pisz na gg.


Powered by phpBB modified by Przemo © 2003 phpBB Group