SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Member Facecat's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Some Questions about Layers

    I have a few things I'm trying to do and I'm wondering if anyone can help me out here:

    1) How do I have a layer that positions itself relative to an image, paragraph, or whatever other kind of location, but still "floats" on top of the rest of the site, so TDs won't resize to fit it and text wont wrap around it?

    2) How do I get rid of the horizontal scrollbar in a case such as:
    <div style="width:400; height:200; overflow: scroll; align:center">
    tons of text
    </div>

    3) How do I reference CSS properties through Javascript? I want to do an alpha fade-in fade-out script for image rollovers, to give you a better Idea of what I'm asking for.

    If you can help me with any of these I thank you in advance.

  2. #2
    SitePoint Enthusiast vischo's Avatar
    Join Date
    Mar 2003
    Location
    Chicago, IL
    Posts
    75
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    1. Don't quite understand.

    2. Change overflow: scroll. Possibly remove or use overflow: visible.

  3. #3
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by Facecat
    3) How do I reference CSS properties through Javascript? I want to do an alpha fade-in fade-out script for image rollovers, to give you a better Idea of what I'm asking for.

    If you can help me with any of these I thank you in advance.
    If you want to change alpha properties, any script you get will either be for IE or Gecko only, one or the other. Other browsers like Opera will do nothing when they come across your scripts.

  4. #4
    SitePoint Addict
    Join Date
    Dec 2002
    Posts
    386
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by vischo
    1. Don't quite understand.

    2. Change overflow: scroll. Possibly remove or use overflow: visible.
    overflow: auto;

    then as long as your content is not too wide all will be good!

  5. #5
    SitePoint Member Facecat's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks people. Pissant's overflow:auto did the job.

    Can anyone help me with the alpha script? I'm fully aware that it's not gonna work outside of IE, doesn't worry me too much.

  6. #6
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Here's a link that explains filters in more detail and gives some examples:
    http://msdn.microsoft.com/library/de...er/filters.asp

    If you need any more help just let us know.

  7. #7
    "Of" != "Have" bronze trophy Jeff Lange's Avatar
    Join Date
    Jan 2003
    Location
    Calgary, Canada
    Posts
    2,063
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can create a script cross-browser compatible with IE and Mozilla, using IE's Alpha() filter, and mozilla's -moz-opacity CSS property.

    (Note: IE's Alpha() filter uses percentages: 30,40,75, and Mozilla uses their decimal counter-parts: 0.3,0.4,0.75)
    Who walks the stairs without a care
    It shoots so high in the sky.
    Bounce up and down just like a clown.
    Everyone knows its Slinky.


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
  •