Greenlander
06-10-2003, 10:05 AM
Hi everyone,
this is a HUGE problem for me and I haven't found any solution on the web so far and time is an issue... :(
This is what I want to do:
Within a frame, I have 2 layers (say A and B). Layer A has lots of text in it and the different paragraphs have HTML anchors. In another layer, I have a menu which also has a lot of items and both need to be able to scroll independently (hence the layer structure). Now I want to link from layer B's menu items to specific anchors in layer A.
That seemed pretty simple to me, but I couldn't find a way to address the other layer directly (by its ID of course). Then I tried to write a JS which is called from the menu items and then scrolls the content of the text layer. BUT: The scrollTo() method is only defined for the window object and not for the layer object or its layer.document (which I think is rather stupid since layers have autoscroll parameters, too)... :confused:
Does anybody have an idea how to accomplish this? Menu-Layer causes the content of a Text-Layer to scroll to a specific anchor??
Thanks a lot for any help!
GL
PS: just to make myself as clear as possible: I do NOT want to scroll the layer itself-- there are some nice scrolling effects that can be achieved this way, but in this case it would ruin my design.
this is a HUGE problem for me and I haven't found any solution on the web so far and time is an issue... :(
This is what I want to do:
Within a frame, I have 2 layers (say A and B). Layer A has lots of text in it and the different paragraphs have HTML anchors. In another layer, I have a menu which also has a lot of items and both need to be able to scroll independently (hence the layer structure). Now I want to link from layer B's menu items to specific anchors in layer A.
That seemed pretty simple to me, but I couldn't find a way to address the other layer directly (by its ID of course). Then I tried to write a JS which is called from the menu items and then scrolls the content of the text layer. BUT: The scrollTo() method is only defined for the window object and not for the layer object or its layer.document (which I think is rather stupid since layers have autoscroll parameters, too)... :confused:
Does anybody have an idea how to accomplish this? Menu-Layer causes the content of a Text-Layer to scroll to a specific anchor??
Thanks a lot for any help!
GL
PS: just to make myself as clear as possible: I do NOT want to scroll the layer itself-- there are some nice scrolling effects that can be achieved this way, but in this case it would ruin my design.