SitePoint Sponsor

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 25 of 32
  1. #1
    SitePoint Zealot
    Join Date
    Jun 2008
    Posts
    192
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Blink,marquee bbcode

    Could anyone post the bbcode for blink and marquee tag?

  2. #2
    Theoretical Physics Student bronze trophy Jake Arkinstall's Avatar
    Join Date
    May 2006
    Location
    Lancaster University, UK
    Posts
    7,062
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I'm pretty sure there isn't one, and if there is then there shouldn't be one.

    Blinking and marquees are ugly, distracting and pointless, and I'm sure everyone will agree.
    Jake Arkinstall
    "Sometimes you don't need to reinvent the wheel;
    Sometimes its enough to make that wheel more rounded"-Molona

  3. #3
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,789
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    Those actions on the rare occasions where they are required are done using JavaScript not HTML. There are no BBcodes for JavaScript.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  4. #4
    SitePoint Zealot
    Join Date
    Jun 2008
    Posts
    192
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by felgall View Post
    Those actions on the rare occasions where they are required are done using JavaScript not HTML. There are no BBcodes for JavaScript.
    hey, this is php forum and im asking for php bbcode
    like
    PHP Code:
    $text=preg_replace("/\[b\](.*?)\[\/b\]/i","<b>\\1</b>"$text); 

  5. #5
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,789
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    You can't do blinking and marquee content with PHP - you need a client side scripting language to run it and that means JavaScript (unless you are on an intranet where everyone is using IE and so you could use vbScript instead.

    In any case bbcodes are not PHP - they are bbcodes and they represent a subset of HTML tags. Since there are no blink and marquee HTML tags in the first place there can't possibly be bbcodes for them.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  6. #6
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,564
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    ..nd marquee HTML tags in the first place there can't possibly be bbcodes for them.
    Yes there is, the <marquee> tag. Though it's SOOO annoying.
    Twitter-@Ryan_Reese09
    http://www.ryanreese.us -Always looking for web design/development work

  7. #7
    SitePoint Wizard
    Join Date
    Mar 2008
    Posts
    1,149
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There's also <blink>, back from the old Netscape days. Annoying as well, although it's now available in CSS in some implementations.

    S/he's asking for the PHP to parse BBCode.

    Your snippet:
    PHP Code:
    $text=preg_replace("/\[b\](.*?)\[\/b\]/i","<b>\\1</b>"$text); 
    It should be obvious what you change, though...

  8. #8
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,789
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by BoltZ View Post
    Yes there is, the <marquee> tag. Though it's SOOO annoying.
    Not in the standards there isn't. That tag is a proprietary one that was proposed by one browser and rejected as being inappropriate to have included in HTML.

    The blink tag was also a proprietary one that was initially proposed and then withdrawn after too many people sued as a result of its triggering medical conditions.

    A complete list of valid tags can be found at http://www.w3.org/TR/html401/index/elements.html
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  9. #9
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,564
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    It's invalid yes, but it still works.
    Twitter-@Ryan_Reese09
    http://www.ryanreese.us -Always looking for web design/development work

  10. #10
    Theoretical Physics Student bronze trophy Jake Arkinstall's Avatar
    Join Date
    May 2006
    Location
    Lancaster University, UK
    Posts
    7,062
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Not an excuse. Working whilst not being valid is a big mistake - look short tags as an example. They may not be recommended, but it works. Doesn't mean you should use them, and if you do you shouldn't

    The thing is, there is no realistic situation for this kind of thing, unless you are designing a site proposed by a 6 year old.
    Jake Arkinstall
    "Sometimes you don't need to reinvent the wheel;
    Sometimes its enough to make that wheel more rounded"-Molona

  11. #11
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,564
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    As long as they have the money I don't care what they ask for. I am their bidding servant.
    Twitter-@Ryan_Reese09
    http://www.ryanreese.us -Always looking for web design/development work

  12. #12
    Theoretical Physics Student bronze trophy Jake Arkinstall's Avatar
    Join Date
    May 2006
    Location
    Lancaster University, UK
    Posts
    7,062
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Lol, if clients knew what they wanted, designing sites would be both easier and more complicated.
    Jake Arkinstall
    "Sometimes you don't need to reinvent the wheel;
    Sometimes its enough to make that wheel more rounded"-Molona

  13. #13
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,564
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    True, most clients want everything: perfect no matter where you view it, they expect good money, etc. They need to realize we are web designers, not magicians.
    Twitter-@Ryan_Reese09
    http://www.ryanreese.us -Always looking for web design/development work

  14. #14
    Theoretical Physics Student bronze trophy Jake Arkinstall's Avatar
    Join Date
    May 2006
    Location
    Lancaster University, UK
    Posts
    7,062
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    In fact I'm talking the other way round.

    They sometimes want things which involve bad design - i.e. blinking/flashing, pointless animations etc - which is why you should come up with the design yourself.
    Jake Arkinstall
    "Sometimes you don't need to reinvent the wheel;
    Sometimes its enough to make that wheel more rounded"-Molona

  15. #15
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,564
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    They want what every client wants: the best page, they expect us to magically be able to do it all. I flat out tell them that doing it that way will annoy the crap out of your visitors and they might not come back. I tell them about JS and they start getting hyper and saying "ZOMGGGGG DO THIS AND THIS".
    Twitter-@Ryan_Reese09
    http://www.ryanreese.us -Always looking for web design/development work

  16. #16
    Theoretical Physics Student bronze trophy Jake Arkinstall's Avatar
    Join Date
    May 2006
    Location
    Lancaster University, UK
    Posts
    7,062
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Ouch.

    Just ask what they want from the site. Nothing to do with design or the URLs or whatever - that's not important.

    Ask what the site should do, not what it looks like. For all the client cares, HTML, CSS, JS, PHP etc don't exist - they just know that the site works.

    Give them that and you have saved alot of time and money working on pointless specs - unless of course the company has a dedicated IT department.

    Anyway, this is getting off-topic.
    Jake Arkinstall
    "Sometimes you don't need to reinvent the wheel;
    Sometimes its enough to make that wheel more rounded"-Molona

  17. #17
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,564
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    This is basically how I create my sites
    1) Find out what they need
    2) Do it
    3) Spice up the page with JS effects
    4) Collect my [strike]hard[/strike] pay.
    The people who pay me ask me how I will make the site and what I will do, such as plans, etc.
    Twitter-@Ryan_Reese09
    http://www.ryanreese.us -Always looking for web design/development work

  18. #18
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,789
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    Just remember thar marquees are one of the quickest ways to LOSE visitors.

    Using blink is one of the fastest ways to get sued for the cost of huge medical bills for all the people you forced into to having an epileptic fit through your thoughtlessness in setting up the blink (Netscape couldn't afford the potential payouts and so dropped support for the tag).
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  19. #19
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,564
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    That reminds me of a moment.

    In Comp Prog 3 class me and 3 other people (BBoardX is one of them) were fooling around and we were like "Hey, first one to write a program to give seizures to epileptic people win!"
    I did it something like this (untested, don't use it)

    Code:
    <html>
    <head>
    <title>Test</title>
    <script type="text/javascript">
    function Eppillepsy()
    {
    while(1==1)
    {
    document.bgColor="#000000";
    document.bgColor="#FFFFFF";
    }
    }
    </script>
    </head>
    <body>
    <button onclick="Eppillepsy();">
    </body>
    </html>
    Crashes the browser.
    Twitter-@Ryan_Reese09
    http://www.ryanreese.us -Always looking for web design/development work

  20. #20
    Theoretical Physics Student bronze trophy Jake Arkinstall's Avatar
    Join Date
    May 2006
    Location
    Lancaster University, UK
    Posts
    7,062
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Nah, that definitely wouldn't work. For one, it would happen so fast that you wouldn't be able to tell the difference, so it needs a timer on it.

    I made something like that as a reaction test about 5 years ago, but I used the javascript setTimeout way to do it every 0.2 seconds.
    Jake Arkinstall
    "Sometimes you don't need to reinvent the wheel;
    Sometimes its enough to make that wheel more rounded"-Molona

  21. #21
    Web Professional
    Join Date
    Oct 2008
    Location
    London
    Posts
    862
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by BoltZ View Post
    Crashes the browser.
    Depends on what you mean by "the browser". It's an endless loop so the process that is running this will stop responding, unless JavaScript engine has means to detect this kind of behaviour or (look IE8 or Chrome) if a tab is running in a separate process or thread then the browser won't crash. The tab will.

  22. #22
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,564
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    In school we used IE7, it works, sorta, the colors flash so fast that the screen fills a 3rd of the way with the color and then moves onto the next, aka black (33&#37, white(33%), black(33%), rinse and repeat.
    Twitter-@Ryan_Reese09
    http://www.ryanreese.us -Always looking for web design/development work

  23. #23
    Theoretical Physics Student bronze trophy Jake Arkinstall's Avatar
    Join Date
    May 2006
    Location
    Lancaster University, UK
    Posts
    7,062
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Unlucky - get 'em to install Opera!
    Jake Arkinstall
    "Sometimes you don't need to reinvent the wheel;
    Sometimes its enough to make that wheel more rounded"-Molona

  24. #24
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,789
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    The point in using JavaScript to handle blinking content is that you have control of the blink rate and so can make sure that there are several seconds between each change so as to avoid any problems.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  25. #25
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,564
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Yea but we were having a race and we decided to just get a simple one working, + we didn't want any siezures.

    Why not get them to install FF?
    Twitter-@Ryan_Reese09
    http://www.ryanreese.us -Always looking for web design/development work


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •