Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Howto#2: Custom Bbcodes For Ipb (marquee), Inner workings of the Marquee Tag
miCRoSCoPiC^eaRt...
post Mar 31 2005, 03:02 PM
Post #1


Advanced Member
*******

Group: Members
Posts: 144
Joined: 19-February 05
From: Nakorn Chaisri, Thailand
Member No.: 3,864



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
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Marquee(14)
  2. Custom 404 Error Pages(17)
  3. Change / Modify The Title Bar Text In IE6 Or FF(3)
  4. Msn Messenger Emotions Location(13)
  5. Ultima Online Graphics Tutorial(2)
  6. I Finished Building My Custom Bass... Starting Another(1)
  7. New Custom Bbcode Called [hide](17)
  8. Topic View Changed To Include Custom Fields(3)
  9. Google's New Custom Search Engine(2)
  10. How Much For This Hosting Package?(7)
  11. New Custom Bbcode [table](20)
  12. Making Custom Error Pages With Cpanel(4)
  13. New Custom Bbcodes Called [google] [define] [imgalign](8)
  14. Google Apps Email Custom Login Page Request(2)
  15. Custom Vz Setups(3)
  1. Custom Ranks(2)
  2. Cms: Can I Use My Own Custom Template?(3)
  3. Halo 3 Xbox Live Help(2)
  4. Custom Navigation Bar In Smf(0)
  5. Custom Php.ini Woes(7)
  6. Bbcodes On Websites(18)
  7. Custom Titles?(5)
  8. Installing Custom Fonts...(5)
  9. Custom Search Engine For Website(8)
  10. Freelance Computer Business, I Need Some Confidence Boosters(6)
  11. Custom Vb Browser(1)
  12. Diablo 2 D2pk Custom Private Pvp Private Realm(1)
  13. Winbinder Listview Control?(0)


 



- Lo-Fi Version Time is now: 8th October 2008 - 05:52 AM