1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.



Welcome Box, With Quote Rotation

Discussion in 'Invisionfree' started by Mousie, May 21, 2008.

  1. Online

    Mousie QUEENSLANDERRR!

    • 'D Contributor
    • Community Devoted
    Member Since:
    Sep 10, 2006
    Total Posts:
    6,136
    Likes Received:
    726
    Gender:
    Female
    Location:
    Australia
    • Awards
    Written by: Lyllea
    Coding help / Inspiration: Dreamweaver / Random javascript tutorials.
    Preview: Code preview
    What it does: Displays a three panel welcoming box, with quote panel in the bottom.
    Installation Instructions:
    So, how do you use it? Simply copy and paste the code into the header of your board.

    Everything marked in red is where your content is! Content Box One is the left box, Box 2 is the center, Box 3 is the far right. Just add your content as you normally would in a sidebar or any other HTML script.

    To edit the quotes in the quote box, replace the text between the "" marks. Make sure you don't use " in your quote, use ' instead. " should only be used at the beginning and ending of your quotes in this particular script.

    To add quotes to the quote box, follow the pattern. For instance:

    quote4="Quote here";
    quote5="Another quote here";
    quote6="Mousie said, 'THIS IS AWESOME'.. so I quoted her!";

    Just keep counting the numbers up as high as you need.

    THEN -- Change the number here:

    var ran_unrounded=Math.random()*3;

    If you have three quotes, use 3. If you have thirty quotes, it will be Math.random()*30 ... if you have 3000, then Math.random()*3000.

    Simple, right?

    EDITING & STYLES...

    This welcome box is designed to work with an Invisionfree CSS. The elements highlighted in green are CSS classes, which are included in the IF CSS by default. If you don't like the way the box responds to the skin, you can edit it.

    Change the text in green to anything you like. You might want to change row2 to ilovemousie.

    Then go to your style sheet (CSS) for the board. Find a nice little space in there (anywhere!) and add:

    .ilovemousie {color: #XXXXXX; background: #XXXXXX;}

    Change the hex codes to what you want, and you're off and away. You can do that with any of the CSS classes there.

    If you aren't running on Invisionfree... yes, you can use this too! Just toddle off to your CSS and add:

    .row1 {color: #XXXXXX; background: #XXXXXX;}
    .row2 {color: #XXXXXX; background: #XXXXXX;}
    .maintitle {color: #XXXXXX; background: #XXXXXX;}

    Change the hex codes to whatever you like, you may want to play with adding padding and background images and what not - have an experiment!

    And that, ladies and gentlemen, concludes today's Mousie lecture.
    Code:

    KJE likes this.
  2. Offline

    Indi Member

    Member Since:
    May 15, 2008
    Total Posts:
    33
    Likes Received:
    0
    This is a great code, I think I'm going to use it. It looks awesome, Mousie. I've been looking for one like this for quite a while.
  3. Offline

    Emma The Father's heart is filled with love for us

    Member Since:
    Apr 27, 2007
    Total Posts:
    5,921
    Likes Received:
    10
    Gender:
    Female
    Location:
    Christchurch
    Your documentation has been approved and moved to the Admind CP Documentations board.

    Thanks for submitting!
  4. Offline

    Rosalieart Catching the first sunrise

    Member Since:
    Nov 2, 2007
    Total Posts:
    3,191
    Likes Received:
    21
    Gender:
    Female
    • Awards
    have you any previews?
  5. Offline

    Heatherbee Girl in the Fireplace

    Member Since:
    Dec 10, 2007
    Total Posts:
    281
    Likes Received:
    9
    Oooh! Shiny. I've been looking for a welcome box code and a quote generator. Thank you so much for sharing, Mousie!
  6. Offline

    Pixie Member

    Member Since:
    Feb 17, 2009
    Total Posts:
    24
    Likes Received:
    0
    Thank you! I was wondering about how to get those. . . > . >

    Thanks, anyway! :D
  7. Offline

    mandarific WHOA HI.

    • Community Devoted
    Member Since:
    Dec 12, 2009
    Total Posts:
    2,334
    Likes Received:
    1,137
    Gender:
    Female
    Location:
    Wisconsin, USA
    <div align=center><span style='font-size:17pt;line-height:100%'>CODE ARCHIVED</span>
    <span style='font-size:11pt;line-height:100%'>[color=7f323a]WE FOUND AN ERROR IN YOUR SUBMISSION[/color]</span>
    Thank you for submitting to our codex, however an error has developed in your submission. Please have another look at the submission guidelines. It's probably a lack of link back, a broke screenshot/preview, etc. If you don't see the problem PM a support moderator to ask. Once the issue is corrected PM a moderator to move it into the proper section. Thank you!</div>
  8. Online

    Mousie QUEENSLANDERRR!

    • 'D Contributor
    • Community Devoted
    Member Since:
    Sep 10, 2006
    Total Posts:
    6,136
    Likes Received:
    726
    Gender:
    Female
    Location:
    Australia
    • Awards
    Updated to include preview. This code is ancient. XD
  9. Offline

    Lint Roller Queen Mother

    • Support Skinner
    Member Since:
    Jan 14, 2009
    Total Posts:
    4,689
    Likes Received:
    1,675
    Gender:
    Female
    Location:
    Northern California
    • Awards
    <div align=center><span style='font-size:17pt;line-height:100%'>ACCEPTED INVISION FINAL 1.3 CODE</span>
    <span style='font-size:11pt;line-height:100%'>[color=7f323a]THANK YOU FOR YOUR SUBMISSION[/color]</span>
    Thank you for submitting to our codex and giving forums everywhere an easily installable piece of code to enrich their board! Keep up the great work and we look forward to seeing more from you!</div>
  10. Offline

    queenofriocht Member

    Member Since:
    Jan 19, 2011
    Total Posts:
    53
    Likes Received:
    0
    Thank you for posting this! <3
  11. Offline

    Scaramouche54 m.a.y.b.e. you're [only] Jane Eyre in JEANS

    • Graphics Artist
    Member Since:
    Apr 13, 2006
    Total Posts:
    1,381
    Likes Received:
    24
    Gender:
    Female
    Location:
    Chicago
    • Awards
    I'll be using this code minus the quote generator on All is Well in the very near future. Thanks for being a lifesaver, dear. =]
  12. Offline

    Your name here! New Member

    Member Since:
    May 16, 2011
    Total Posts:
    1
    Likes Received:
    0
    THANK YOU, DUDE! D:
  13. Offline

    Lucita New Member

    Member Since:
    Aug 2, 2010
    Total Posts:
    2
    Likes Received:
    0
    Using Here I did a minor change and now I am using the quoting code for the sidebar underneath the quick login area. The Forum is in Spanish so you know ^^
  14. Offline

    Solomon Member

    Member Since:
    Jul 29, 2011
    Total Posts:
    65
    Likes Received:
    15
    Gender:
    Male
    Fabulous. I'll definitely be using this.
  15. Offline

    Naminote Sugarmuffindoll

    Member Since:
    Aug 18, 2011
    Total Posts:
    133
    Likes Received:
    51
    Gender:
    Female
    Location:
    Australia
    This is a sweet code! Thanks, I'm using it here.
  16. Offline

    Lady Knight The Last of the RP Lords

    Member Since:
    Jun 7, 2011
    Total Posts:
    458
    Likes Received:
    328
    Gender:
    Female
    Location:
    Alchemist Headquarters
    • Awards
    Using at What It Takes when we switch to the new skin.
  17. Offline

    Ozfiz Member

    Member Since:
    Oct 9, 2011
    Total Posts:
    25
    Likes Received:
    16
    Gender:
    Female
    Location:
    Canada, Eh?
    Ooh this is great, thanks for sharing it! I think I'm going to use it on FD ^^
  18. Offline

    Kitty5roses Member

    Member Since:
    Jun 30, 2008
    Total Posts:
    655
    Likes Received:
    50
    Gender:
    Female
    Location:
    Australia
    • Awards
    Fantastic code, thanks for sharing!
  19. Offline

    KJE Fantasy Writer

    Member Since:
    Aug 4, 2012
    Total Posts:
    45
    Likes Received:
    12
    Gender:
    Female

Share This Page