SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Zealot
    Join Date
    Jan 2006
    Posts
    190
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    target layer in another window

    in dreamweaver there's that show/hide layers behavior
    can that be somehow tweaked to show hide layers in another window, to be specific parent window of the one triggering the show/hide?

  2. #2
    SitePoint Wizard
    Join Date
    Mar 2001
    Posts
    3,537
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can change anything in a parent window or access any js in a parent window using the opener property, e.g.:

    opener.document.getElementById("elmtID")

  3. #3
    SitePoint Zealot
    Join Date
    Jan 2006
    Posts
    190
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    so how do i combine that with

    MM_showHideLayers('LayerName','','hide')

    ?

  4. #4
    SitePoint Wizard
    Join Date
    Mar 2001
    Posts
    3,537
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    Sorry, I don't use DreamWeaver. If you want to know what button to push on DreamWeaver to do something, consult your user's manual, help, or email Macromedia.

  5. #5
    SitePoint Zealot
    Join Date
    Jan 2006
    Posts
    190
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    no no i'm trying to modify manually what dreamweaver already gave me

    this is the function i'm working with

    Code:
    function MM_showHideLayers() {
      var i,p,v,obj,args=MM_showHideLayers.arguments;
      for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
        if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
        obj.visibility=v; }
    }
    would i insert
    opener.document.getElementById("elmtID")
    somewhere in there?

  6. #6
    SitePoint Wizard
    Join Date
    Mar 2001
    Posts
    3,537
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Who can tell what the chicken scratchings produced by Dreamweaver mean.

  7. #7
    Object Not Found junjun's Avatar
    Join Date
    Mar 2002
    Location
    northern MI
    Posts
    1,392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    pelachrum, are you using frames for your website?
    If so, you will be limited in many ways, your users as well. If you would make a regular website instead, you'd save yourselve alot of these headaches.

  8. #8
    SitePoint Zealot
    Join Date
    Jan 2006
    Posts
    190
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    the website is for personal purpose only actually
    i'm working on other ways of getting it

    thanks all


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
  •