|
|
|
|
![]() ![]() |
Mar 31 2005, 01:46 PM
Post
#1
|
|
|
PsYcheDeLiC dR3aMeR Group: Admin Posts: 2,242 Joined: 29-January 05 From: Nakorn Chaisri, Thailand Member No.: 2,411 |
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 |
|
|
|
Apr 1 2005, 03:01 AM
Post
#2
|
|
|
Techno-Necromancer Group: Members Posts: 1,018 Joined: 13-January 05 From: The Net Member No.: 2,127 |
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?
|
|
|
|
Apr 1 2005, 07:33 AM
Post
#3
|
|
|
PsYcheDeLiC dR3aMeR Group: Admin Posts: 2,242 Joined: 29-January 05 From: Nakorn Chaisri, Thailand Member No.: 2,411 |
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...782entry25782
|
|
|
|
Apr 1 2005, 12:23 PM
Post
#4
|
|
|
Member - Active Contributor Group: Members Posts: 79 Joined: 5-March 05 Member No.: 2,909 |
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.
|
|
|
|
Apr 1 2005, 11:02 PM
Post
#5
|
|
|
Techno-Necromancer Group: Members Posts: 1,018 Joined: 13-January 05 From: The Net Member No.: 2,127 |
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.
|
|
|
|
![]() ![]() |
Similar Topics
| Topics | Topics | |
|---|---|---|
|
|
|
|
Lo-Fi Version | Time is now: 30th August 2008 - 02:23 PM |