Results 1 to 10 of 10
  1. #1
    Star Lounger
    Join Date
    Sep 2001
    Location
    San Jose, California, USA
    Posts
    92
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Printing pages with java menu in banner (2000, SR-1)

    Post deleted by Viking2001

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Printing pages with java menu in banner (2000, SR-1)

    Although it's decidedly old school, I find that constraining script-based elements with tables is more reliable than using numeric positioning. That said, there is a media selector in the CSS specifications, something like "@media print" which can change the various elements of the style definition at print time. I think, though, that not all browsers are equally dependable in implementing those features. In your case, I'm not sure how you can account for the user's top margin setting when declaring your positioning. Maybe there is a different property/attribute than the one you are using that would be more "relative"?

  3. #3
    Star Lounger
    Join Date
    Sep 2001
    Location
    San Jose, California, USA
    Posts
    92
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Printing pages with java menu in banner (2000, SR-1)

    Post deleted by Viking2001

  4. #4
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Printing pages with java menu in banner (2000, SR-1)

    Can you post a link to a page with the problem, or maybe zip up a sample file and upload it? I don't think I could replicate this on my own.

  5. #5
    Star Lounger
    Join Date
    Sep 2001
    Location
    San Jose, California, USA
    Posts
    92
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Printing pages with java menu in banner (2000, SR-1)

    Post deleted by Viking2001

  6. #6
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Printing pages with java menu in banner (2000, SR-1)

    Wow, these are fast menus! In the config.htm file (in the .zip file from http://www.dynamicdrive.com), under TargetLoc, there are instructions for relative positioning. I think that's what you need.

    On the issue of width, you might be out of luck, as it doesn't appear dynamic. The overhead of responding to changes in the window size would not be worthwhile. As for a cell width of 760 pixels, how dare you?! I realize 640 is passe, but fixed width tables make anyone who wants to print web pages miserable. Just something to keep in mind for those of us who still like paper.

  7. #7
    billeger
    Guest

    Re: Printing pages with java menu in banner (2000,

    Using 'search' your posts from the past came up on relative positioning for, I presume, graphics.

    I've got a client that sells tea. Which leads me to my question. His boxes are most attractive and I'm thinking of some sort of presentation of these. While first considering animation with the boxes changing for a little drama -- who needs drama with tea? -- I've since thought better of it. Now the idea is a list with the teas shown next to their outstanding qualities, etc., etc., and when you click on the name the tea box appears in all it's glory. It makes sense to have each box appear in the same point on the screen, right over the place where the previous box sat.

    I've never seen anything in FrontPage or elsewhere about deleting a graphic before you put another over it. But if the page on my friendly browser's monitor is static then maybe that's worth considering. The other thought may be to just bring up a whole separate page for each tea but that seems excessive, given the large number of varieties. That's where relative positioning came in. Your thought about putting the graphic in a table may make even better sense for all the reasons you listed.

    Have you had any experience since you wrote that good thought? And how do you like your tea? <img src=/S/cauldron.gif border=0 alt=cauldron width=20 height=20>

    <font face="Snap ITC">Hawai`i Bill</font face=snap>

  8. #8
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Printing pages with java menu in banner (2000,

    My current tea of choice is YamaMotoYama Premium Green Organic (it's new enough not to be on their web site yet). It's great, but at $4 for 20 bags, it's not cheap. And I require several infusions per day. (P.S. Looks as though it's also sold under the Stash brand, per this page.)

    Now, on to the real issue! Frankly, I'm not sure this is the most efficient way to handle the situation, as the user might want to go Back..., but rest assured that you can use a link to run some JavaScript to swap the SRC file in an <IMG> tag.

    First, assume this tag, which the script will manipulate:

    [img]firstphoto.jpg[/img]

    This following code, from one of our Summer raft trip photo galleries, will only run in IE, since I lazily used the document.all.items collection (works in IE4/5/6):

    <script>
    function ShowPhoto(strFileName)
    {
    document.all.item('Photo').src = strFileName
    }
    </script>

    The link code looks something like this:

    Dick's better half

    Now, if you want a standards compliant, cross-browser way to do this, with a little more flexibility by making the image tag ID a parameter, I can help you for NS6/7 and IE5/6. The script would be more like this:

    <script>
    function UpdateIMG(strImageID,strFileName)
    {
    //IE5+ and NS6+
    var myIMG = document.getElementById(strImageID);
    myIMG.src = strFileName
    }
    </script>

    Then the link code looks more like this:

    Dick's better half

    Hope this helps!

  9. #9
    billeger
    Guest

    Re: Printing pages with java menu in banner (2000,

    Jefferson,

    Out here in the middle of the Pacific Ocean these fine teas are very popular. I'll keep my eye out for that YamaMotoYama Premium Green Organic. My client is San Francisco Herb and Natural Food Co. They have nine different green teas, my favorites being Young Hysop and Gunpowder. You may be interested to know that a group of very good farmers is working on green tea grown on our Big Island of Hawai`i. Tests are most promising. When the time is right, I'll get in touch with you here and offer you a sample, if you like.

    Everything considered, I'm going with the use of a table for my tea boxes. That is, a table IF it will function with absolute positioning to change the graphic loaded therein. Experiments are ongoing.
    <img src=/S/cauldron.gif border=0 alt=cauldron width=20 height=20>
    <img src=/S/fire.gif border=0 alt=fire width=15 height=15> Mahalo from the edge of our volcano!

    <font face="Snap ITC">Hawai`i Bill</font face=snap>

  10. #10
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Printing pages with java menu in banner (2000,

    I made a post on absolute and relative positioning on the web coding board a few weeks ago. The technology is disappointing, to say the least. A table, plain and simple, works a heck of a lot better than trying to float stuff around on the page. Or maybe I should say, unless you go completely down the CSS route, it's safer to stick with the old-fashioned methods than to try to mix 'em.

    P.S. I'll be 'round to pick up the tea in the Fall, if I can swing it. <img src=/S/grin.gif border=0 alt=grin width=15 height=15>

Posting Permissions

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