Results 1 to 5 of 5

Thread: Anyone familiar with overLib? Just want 2 text colors

  1. #1
    Join Date
    Mar 2007
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Anyone familiar with overLib? Just want 2 text colors

    I'm working with: http://www.bosrup.com/web/overlib/?Features

    Trying to produce the following:

    This text is one color: making this text another color
    And this link is bold and another color.

    Could anyone give me an example of how I would go about including 2 or more text/link colors? I tried writing the author with no reply, probably busy with a thousand other emails. I put this in the CSS section as I read items could be altered through CSS inclusion but it all became german for me after that. All the same thank you very much for reading.

  2. #2
    Join Date
    Mar 2007
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Anyone please? Or perhaps an alternative to using overLIB?

  3. #3
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    According to that page, you can just use HTML in the string. Not sure what the point of having a link in there would be, though... the user could never click it.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  4. #4
    Join Date
    Mar 2007
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    If you scrolldown to the bottom of the page above you can make a sticky popup allowing people to click popups. And although I can include html it won't allow me to include 2 or more colors, just overall universal 1 color for all text.

  5. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    If you can include HTML, you should also be able to include inline style. This will allow you to color and/or do just about anything to the style of individual parts of the included HTML. However, and I have had some experience with an earlier (probably much earlier) version of overLib, when putting style into tags that you put into some syntax that will be used by overLib or any script, quoting can become a little complicated. Sometimes quotes and/or single quotes must be escaped:

    Code:
    <a href=\"some.htm\" style=\"color:red;\">Link text</a>
    Sometimes even that isn't good enough and if quotes can be skipped (as they can in the above):

    Code:
    <a href=some.htm style=color:red;>Link text</a>
    That will do it.

    Or a class or id name may be used and styled in a stylesheet:

    Code:
    <a href=some.htm id=ol_link1 >Link text</a>
    Sometimes other things need to be done. There is almost always a way (or several ways) to make it work. If you were to put up an example page of what you are trying to do I might be able to get it to work for you.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •