How To #2: Custom BBCodes For IPB (Marquee)

free web hosting
Free Web Hosting > Computers & Tech > How-To's and Tutorials > Programming > HTML, XML and other Markup Languages

How To #2: Custom BBCodes For IPB (Marquee)

miCRoSCoPiC^eaRthLinG
MARQUEE Tag

Hi,
    [/tab]I'm back with yet a second tutorial on how I created the MARQUEE tag. It's working well - but at first it'll seem that the tag has caused your browser to freeze. I guess depending on the different ways that IE and Mozilla Compliant Browsers parse HTML tags - the outputs are a little different. While using FireFox, the Marquee wouldn't start scrolling till all the page elements & the page itself has FULLY LOADED. Till then, it might seem that the browser's on the verge of freezing. On the other hand, in IE the Marquee starts off rightaway - even without 100% page load.

[tab]Anyway, here's the code:
CODE

<div id="marquee" style="width:600px; border: solid 1px #000000;"><marquee direction={option}>{content}</marquee></div>


    [/tab]As you can see, I've placed the Marquee within a <div> tag and specified a fixed width - to keep the Marquee safely embedded in your post and not expand and push the right border of your post out of the page. I've left the height unspecified, so that the <div> can expand on it's own to fit your text. Also I've given this box a 1-pixel wide Black Border as you can make out from the style="..." attribute of <div>.

[tab]The {option} here takes the direction of the Marquee (left, right, up, down) and passes it on to the HTML <marquee> tag. The {content} that is your textual content between the [ MARQUEE ] [ /MARQUEE ] tags, is placed here between actual HTML <marquee> tags. Just inspect the code a little carefully - there's hardly anything to explain about this. It's fairly self-evident.

Have fun smile.gif

 

 

 


Reply

vizskywalker
how do you add javascript or php to a BBCode. Does the BBCode just consist of html like any other webpage except it has variables {option} and {content} or do you have to do something special to get the javascrpt to start?

Reply

miCRoSCoPiC^eaRthLinG
Nope. nothing special needed. And yea, {content} and {option} are just two variables here which wouldnt be available in normal HTML. The BBCode parser takes those two and combines them with normal HTML Code. I explained a little more here: http://www.astahost.com/index.php?showtopi...782&#entry25782

Reply

rkage
Am I the only one who detests marquees? They are really annoying. They dont move smoothly and its annoying when people have large amounts of text, you miss the first few words and you have to wait 1 minute before it comes round again.

Reply

vizskywalker
I don't mind them, but I think they are going the way of the blink code. I think now that flash is taking over and animated gifs are easy to use and almost everyone can view them, simple animation like marquee and blink are no longer needed or wanted. As a BBCode, I think it may be overused by people, or it may not be.

Reply


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Recent Queries:-
  1. custom html marquee - 5.32 hr back. (1)
  2. compliant marquee code - 24.57 hr back. (1)
  3. allow html tags to ipb - 30.27 hr back. (1)
  4. html marquee format - 36.80 hr back. (1)
  5. ipb custom bb codes - 40.80 hr back. (1)
  6. div code marquee - 40.93 hr back. (1)
  7. bbcode to make flashing text in an ipb topic - 78.76 hr back. (1)
  8. marquee 2 html - 92.73 hr back. (1)
  9. bb codes ipb - 98.30 hr back. (1)
  10. customize marquee html - 119.41 hr back. (1)
  11. adding a bbcode in ipb - 177.70 hr back. (1)
  12. custom bb codes ipb - 284.29 hr back. (1)
  13. marquee bb codes - 287.37 hr back. (1)
  14. custom bbcodes for ipb - 293.35 hr back. (1)
Similar Topics

Keywords : howto, 2, custom, bbcodes, ipb, marquee

  1. How To #4: Custom BBCodes For This Board (Pptions)
    More than one of them (2)
  2. How To #3: Custom BBCdes For This Board (Note)
    (15)
    Hi, Here I am with yet a third tutorial on the NOTE tag. Most of the mods would have noticed a
    drastic change in it's appearance over the past few days - bit by bit... I'm going to put up
    the code today and do a little bit of explaining as to how it works. This code's script is
    quite long and winding though and has got 2 parts - first a JavaScript that defines a function which
    is reponsible for the Expand/Collapse button of the note - and the second part constitutes of the
    actual layers which give the note it's shape/size/color/graphics. First her....
  3. How To #1: Custom BBCodes For IPB (Console)
    (2)
    Custom BBCodes for Forums -------------------------- Hi all, I came up with this article to share
    what I learnt of designing Custom BBCodes for various forum softwares while trying to come up with
    some useful one's for AstaHost. Most of you are by now familiar with the new ones like CONSOLE,
    NOTE, TABL etc. which I introduced a few days back. So how do these BBCodes work ? And how does the
    forum softwares parse them. BBCodes, as you know, usually takes a Text Stuff format. The
    "Text Stuff" in the textual content on which you want your bbcode to work. I....

    1. Looking for howto, 2, custom, bbcodes, ipb, marquee

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for howto, 2, custom, bbcodes, ipb, marquee
advertisement




How To #2: Custom BBCodes For IPB (Marquee)



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE