Good art is a taste, good design is an opinion.


Come as guest, stay as family.
Board Index

Come as guest, stay as family.


You are not connected. Please login or register

Foto

[Solved] change text on poster every refresh/reload page



View previous topic View next topic Go down Message [Page 1 of 1]

1
Offline

  Hiruko

avatar
Punbb Rookie
Punbb Rookie
hello punbb community i want to ask Smile
how to change "text words" every refresh page.

Here I explain, in one page there are some words,
word examples: 1.invision

and when I reload the page it automatically switches again, example: 2.punBB

and when I reload page again automatically switches, example: 3.Forumotion

Conclusion "words text" automatic switch, every page change (reload  page)

I need your help,
im really appreciate, thanks a lot Smile

Powered by PunBB
Currently 0 users have thanked Hiruko for this post:

2
Offline

  Shadow

avatar
Administrator
Administrator
I don't understand what do you mean?

Powered by PunBB
Currently 0 users have thanked Shadow for this post:

3
Offline

  Hiruko

avatar
Punbb Rookie
Punbb Rookie
ok im explain again Smile

how to change text on poster every "reload/refresh page"

you can see this image,
This text on poster


and when im reload/refresh page, text change again


more details you can visit to this forum
http://duelacademy.net/forum

you can always reload/refresh page on that forum, and quote text always change every refresh page..

I hope understand Very Happy

I need your help admin,
im really appreciate, thanks a lot Smile

Powered by PunBB
Currently 0 users have thanked Hiruko for this post:

4
Offline

  Shadow

avatar
Administrator
Administrator
This should do it.
Code:
[panda=js]function text() {
};

text = new text();
number = 0;

// textArray
text[number++] = "Random text string 1."
text[number++] = "Random text string 2."
text[number++] = "Random text string 3."
text[number++] = "Random text string 4."
text[number++] = "Random text string 5."
// keep adding items here...

increment = Math.floor(Math.random() * number);

document.write(text[increment]);

//-->



Forum Administrator, Coolyou,
Due to the volume of PMs I receive, I do not provide support via PM.
We have community forums for most support requests. If it's truly confidential, please do PM me.

Useful links:
-> Before asking question,  please use a Search option.
-> If you want to check our staff members click here.
->  Forum rules, this is a MUST READ thread.
->  FAQ (Frenquently asked questions)

Powered by PunBB
Currently 0 users have thanked Shadow for this post:

5
Offline

  Hiruko

avatar
Punbb Rookie
Punbb Rookie
yeah thanks admin, Smile
that's what I want, but how do I give the class if the javascript?
so that the distance can be set positions, margins, font color, font type, at least, can be set with css.

how do I do that when javascript,
I would like to be placed in poster


I tried code like this but failed, not out in poster
template>overall header
Code:
<div style="border:1px solid #141414;"><div style="height: 264px; overflow:hidden; border:3px solid #080808; background: url('http://i.imgur.com/KS899tE.png');" id="mainlogo">
                                                          <table cellspacing="0" cellpadding="0" border="0" align="center" ><tbody><tr>
                                                            <a href="/forum"><div style="height:125px; width:342px; background:url('http://i.imgur.com/7G8ePbB.png') no-repeat;" id="onlylogo"></div></a>
                                                            </tr></tbody></table>
                                                          </div></div>
                                                  <div id="logotext2">
                                                    <script>    function text() {
        };
        text = new text();
        number = 0;
        // textArray
        text[number++] = "Random text string 1."
        text[number++] = "Random text string 2."
        text[number++] = "Random text string 3."
        text[number++] = "Random text string 4."
        text[number++] = "Random text string 5."
        // keep adding items here...
        increment = Math.floor(Math.random() * number);
        document.write(text[increment]);
        //-->
</script></div>
i think I'm wrong on that,
I need your help admin,
im really appreciate, thanks a lot Smile

my forum
http://budokai.indonesianforum.net/

Powered by PunBB
Currently 0 users have thanked Hiruko for this post:

6
Offline

  Shadow

avatar
Administrator
Administrator
You have to learn on your own basic things, you can't ask every single question how-to it's not hard to learn css and javascript tagging atleast.

Code:
[panda=js]document.write("<style type='text/css'>body {CSS inside}</style>");
This is my last response to this thread.



Forum Administrator, Coolyou,
Due to the volume of PMs I receive, I do not provide support via PM.
We have community forums for most support requests. If it's truly confidential, please do PM me.

Useful links:
-> Before asking question,  please use a Search option.
-> If you want to check our staff members click here.
->  Forum rules, this is a MUST READ thread.
->  FAQ (Frenquently asked questions)

Powered by PunBB
Currently 0 users have thanked Shadow for this post:

7
Offline

  Hiruko

avatar
Punbb Rookie
Punbb Rookie
I actually also learn from you, by giving you a code to me,. I first learned HTML + CSS to ask, and now I understand about HTML + CSS,

but for now I do not know about javascript. way of incorporation javascript + css code, I do not understand it, so I asked to you.

ok no problem admin, thanks for help me.
thanks a lot, im very appreciate you Smile

Powered by PunBB
Currently 0 users have thanked Hiruko for this post:

8
Offline

  Guest

avatar
Guest
Hiruko wrote:I actually also learn from you, by giving you a code to me,. I first learned HTML + CSS to ask, and now I understand about HTML + CSS,

but for now I do not know about javascript. way of incorporation javascript + css code, I do not understand it, so I asked to you.

ok no problem admin, thanks for help me.
thanks a lot, im very appreciate you Smile
Well just put in new column code which Nep posted you and inside tags put css and thats it Smile

Powered by PunBB
Currently 0 users have thanked Guest for this post:

View previous topic View next topic Back to top Message [Page 1 of 1]


Topic URL's

URL
BBcode
HTML

Permissions in this forum:
You cannot reply to topics in this forum