Forum www.forum.fora.pl Strona Główna

www.forum.fora.pl
Nieoficjalne forum pomocy serwisu fora.pl
 

Skrypt na ogłoszenie :)

 
Napisz nowy temat   Odpowiedz do tematu    Forum www.forum.fora.pl Strona Główna -> Pomoc i pytania
Zobacz poprzedni temat :: Zobacz następny temat  
Autor Wiadomość
GreenhornPL
Taki se gostek
Taki se gostek



Dołączył: 05 Sie 2008
Posty: 10
Przeczytał: 0 tematów

Ostrzeżeń: 0/5

Płeć: Mężczyzna

PostWysłany: Nie 13:00, 10 Sie 2008    Temat postu: Skrypt na ogłoszenie :)

Wiem, ze jest skrypt na ogloszenie, blagam przeslijcie mi go Very Happy Czytalem nawet na tym forum, ale nie bylo odpowiedzi Smile

Green


Post został pochwalony 0 razy
Powrót do góry
Zobacz profil autora
_Dziewczynka
Nowicjusz
Nowicjusz



Dołączył: 02 Gru 2005
Posty: 36
Przeczytał: 0 tematów

Pomógł: 1 raz
Ostrzeżeń: 0/5

PostWysłany: Nie 17:29, 10 Sie 2008    Temat postu:

Ja mam tylko takie coś... nie wiem czy dokładnie o to Ci chodzi.


Kod:
<style type="text/css">
.stHeadliner {font-family: times new roman, monospace;
font-size: large;
font-weight: bold;
font-style: italic;
color: navy;
text-transform: capitalize;
text-align: center;
width: 92%;
height: auto;
border-style: none;
cursor: hand;}
</style>

<script language="JavaScript">
<!-- start hide
// ************************************************************
// First, some variables you can change as you like it
// ************************************************************
// autostart - used instead body onload
setTimeout('StartHeadliner()',5);
// Delay in milliseconds for the typewriting headliner
typeWriterWait=120
// Delay in milliseconds for displaying the text for the blinking headliner
blinkTextWait=1000
// Delay in milliseconds for displaying nothing for the blinking headliner
blinkSpacesWait=300
// Number of times to blink
blinkMax=6
// Delay in milliseconds per character for the expanding headliner
expandWait=100
// Delay in milliseconds per character for the scrolling headliner
scrollWait=90
// Number of characters in scrolling zone for the scrolling headliner
scrollWidth=34
// Should the lines be chosen randomly (true or false)
randomLines=false
// ************************************************************
// Second, specify the lines of text
// ************************************************************
// Define the lines as follows (text to display, url or mailto, frame name, which effect, time to wait after displaying)
// See the headliner.txt for more info on this variables
// Number of lines, specify as much as you want to use
lineMax=3
lines=new Array(lineMax)
lines[1]=new Line("Uwaga", "http://www.creamsoft.com.pl/skryba/", "", TypeWriter, 1000)
lines[2]=new Line("TU WPISZ TREŚĆ OGŁOSZENIA", "http://www.creamsoft.com.pl/skryba/", "", Scroll, 1500)
lines[3]=new Line("Uwaga", "http://www.creamsoft.com.pl/skryba/", "", Expand, 3000)


// Some other variables (just do not change)
lineText=""
timerID=null
timerRunning=false
spaces=""
charNo=0
charMax=0
charMiddle=0
lineNo=0
lineWait=0
// ************************************************************
// The functions to get things going
// ************************************************************
// Define a line object
function Line(text, url, frame, type, wait) {
this.text=text
this.url=url
this.frame=frame
this.Display=type
this.wait=wait
}
// Fill a string with n chars c
function StringFill(c, n) {
var s=""
while (--n >= 0) {
s+=c
}
return s
}
// Returns a integer number between 1 and max that differs from the old one
function getNewRandomInteger(oldnumber, max)
{
var n=Math.floor(Math.random() * (max - 1) + 1)
if (n >= oldnumber) {
n++
}
return n
}
// Returns a integer number between 1 and max
function getRandomInteger(max)
{
var n=Math.floor(Math.random() * max + 1)
return n
}
// Jump to the specified url in the specified frame
function GotoUrl(url, frame) {
if (frame != '') {
if (frame == 'self') self.location.href=url
else if (frame == 'parent') parent.location.href=url
else if (frame == 'top') top.location.href=url
else {
s=eval(top.frames[frame])
if (s != null) top.eval(frame).location.href=url
else window.open(url, frame, "toolbar=yes,status=yes,scrollbars=yes")
}
}
else window.location.href=url
}
function Static() {
document.formDisplay.buttonFace.value=this.text
timerID=setTimeout("ShowNextLine()", this.wait)
}
function TypeWriter() {
lineText=this.text
lineWait=this.wait
charMax=lineText.length
spaces=StringFill(" ", charMax)
TextTypeWriter()
}
function TextTypeWriter() {
if (charNo <= charMax) {
document.formDisplay.buttonFace.value=lineText.substring(0, charNo)+spaces.substring(0, charMax-charNo)
charNo++
timerID=setTimeout("TextTypeWriter()", typeWriterWait)
}
else {
charNo=0
timerID=setTimeout("ShowNextLine()", lineWait)
}
}
function Blink() {
lineText=this.text
charMax=lineText.length
spaces=StringFill(" ", charMax)
lineWait=this.wait
TextBlink()
}
function TextBlink() {
if (charNo <= blinkMax * 2) {
if ((charNo % 2) == 1) {
document.formDisplay.buttonFace.value=lineText
blinkWait=blinkTextWait
}
else {
document.formDisplay.buttonFace.value=spaces
blinkWait=blinkSpacesWait
}
charNo++
timerID=setTimeout("TextBlink()", blinkWait)
}
else {
charNo=0
timerID=setTimeout("ShowNextLine()", lineWait)
}
}
function Expand() {
lineText=this.text
charMax=lineText.length
charMiddle=Math.round(charMax / 2)
lineWait=this.wait
TextExpand()
}
function TextExpand() {
if (charNo <= charMiddle) {
document.formDisplay.buttonFace.value=lineText.substring(charMiddle - charNo, charMiddle + charNo)
charNo++
timerID=setTimeout("TextExpand()", expandWait)
}
else {
charNo=0
timerID=setTimeout("ShowNextLine()", lineWait)
}
}
function Scroll() {
spaces=StringFill(" ", scrollWidth)
lineText=spaces+this.text
charMax=lineText.length
lineText+=spaces
lineWait=this.wait
TextScroll()
}
function TextScroll() {
if (charNo <= charMax) {
document.formDisplay.buttonFace.value=lineText.substring(charNo, scrollWidth+charNo)
charNo++
timerID=setTimeout("TextScroll()", scrollWait)
}
else {
charNo=0
timerID=setTimeout("ShowNextLine()", lineWait)
}
}
function StartHeadliner() {
StopHeadliner()
timerID=setTimeout("ShowNextLine()", 2000)
timerRunning=true
}
function StopHeadliner() {
if (timerRunning) {
clearTimeout(timerID)
timerRunning=false
}
}
function ShowNextLine() {
if (randomLines) lineNo=getNewRandomInteger(lineNo, lineMax)
else (lineNo < lineMax) ? lineNo++ : lineNo=1
lines[lineNo].Display()
}
function LineClick(lineNo) {
document.formDisplay.buttonFace.blur()
if (lineNo > 0) GotoUrl(lines[lineNo].url, lines[lineNo].frame)
}
// Do not change the name of the form or the button!
with (document) {
write('<center><form name="formDisplay"><input class="stHeadliner" type="button"')
write('name="buttonFace" value="Proszę czekać. Ładowanie ..."')
write('onClick="LineClick(lineNo)"></input></form></center>')
}
// end hide -->
</script>



Ogłoszenie wpisujesz tam gdzie napisałam "TU WPISZ TREŚĆ OGŁOSZENIA"


Post został pochwalony 0 razy
Powrót do góry
Zobacz profil autora
GreenhornPL
Taki se gostek
Taki se gostek



Dołączył: 05 Sie 2008
Posty: 10
Przeczytał: 0 tematów

Ostrzeżeń: 0/5

Płeć: Mężczyzna

PostWysłany: Nie 20:28, 10 Sie 2008    Temat postu:

No dzięki, ale nie o to mi chodziło Razz Chodzilo mi o tak jakby nowe forum z nazwą Ogłoszenie i zeby nie bylo "ostatni post" itp. tylko mozna by bylo wpisac jakies ogloszenie Smile

Post został pochwalony 0 razy
Powrót do góry
Zobacz profil autora
Wyświetl posty z ostatnich:   
Napisz nowy temat   Odpowiedz do tematu    Forum www.forum.fora.pl Strona Główna -> Pomoc i pytania Wszystkie czasy w strefie EET (Europa)
Strona 1 z 1

 
Skocz do:  
Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach


fora.pl - załóż własne forum dyskusyjne za darmo
Powered by phpBB © 2001, 2005 phpBB Group
deoxGreen v1.2 // Theme created by Sopel stylerbb.net & programosy.pl

Regulamin