Results 1 to 9 of 9

Thread: Translucent Scroller Font Changes

  1. #1
    Join Date
    Jul 2006
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Translucent Scroller Font Changes

    1) Script Title: Translucent Scroller

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...centscroll.htm

    3) Describe problem: I can't seem to figure out how to change the font to be bold, italic & another font (Tahoma). Where would I place that ?

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Simply find the line:

    Code:
    if (ie4||dom)
    document.write('<div style="position:relative;width:'+scroller_width+';height:'+scroller_height+';overflow:hidden; font: bold 12px Tahoma; font-style: italic">
    The code in red is new.

  3. #3
    Join Date
    Jul 2006
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    worked like a charm. and i am learning javascript in the process....thank you very much....again! this is a fantastic site that i am already telling others about.

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

    Default Help! Font change

    I followed the above suggestion on changing the font and size etc but as a result when the scroller first loads the second scroller appears faintly underneath which distorts the text below.
    The next few scrollers appear to rise from further down the page. Can anyone help?

    if (ie4||dom)
    document.write('<div style="position:relative;width:'+scroller_width+';height:'+scroller_height+';overflow:hidden font: 15px">

  5. #5
    Join Date
    Feb 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    hello. I am also getting the ghost images. In addition I can't find the right way to insert the code to change the font and font color. I tried every suggestion in the posts, but nothing worked for me. However, I did discover a solution for centering the scroller in IE within a table - substitute the "absolute" positions for "relative" positive" positions in this same line of code we are working in.

    please help! I've tried a zillion combos...

    ;overflow:hidden; font: arial 18px goldenrod">
    ;overflow:hidden; font face: "arial" 18px goldenrod">
    ;overflow:hidden; font= arial 18px goldenrod">
    Last edited by 11225; 02-10-2008 at 07:42 PM. Reason: forgot to add something

  6. #6
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    11225, in the future, please start a new thread when asking a question. Regarding it, the problem with the font is since the syntax you're using for the font property is incorrect. See here for more info.

    So this would be valid:

    Code:
    font: normal 18px Arial
    Regarding "ghosting", I assume you mean in IE (not Firefox). If so, make sure inside the script, you have the bgcolor set to an explicit color, and not transparent:

    Code:
    var bgcolor='#E0EFD1'

  7. #7
    Join Date
    Feb 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default ghost image

    Thank you. I finally got the correct syntax!
    And yes - I am trying to use the scroller over another object and I have bgcolor=''. Is there anyway to achieve this?
    Thanx again

  8. #8
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Not in IE6 (most likely same with IE7, not sure) unfortunately. This is a documented bug with IE filters by Microsoft, with their suggested solution being to give the transitioning element an explicit background color.

  9. #9
    Join Date
    Feb 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    ok, thank you for letting me know

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
  •