Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Clicking <img> unhides link.

Status
Not open for further replies.

guiltyverdict

Technical User
Feb 25, 2003
20
US
Hi everybody,
I am using frames for the support section of my website. The frames are split vertically. I used dynamic drives Collapsible Frame Script The left frame collapses and the right frame is visible.

What i would like to happen is when the user collapses the left frame, a link in the right frame unhides. I know that im going to have to use <div> and onclick or something to that effect. I'm not that good at creating javascript and any help would be appreciated. Here are the specs:

<frameset rows=&quot;*&quot; cols=&quot;174,*&quot; border=&quot;1&quot; frameborder=&quot;1&quot; FRAMESPACING=&quot;6&quot; TOPMARGIN=&quot;0&quot; LEFTMARGIN=&quot;0&quot; MARGINHEIGHT=&quot;0&quot; MARGINWIDTH=&quot;0&quot;>
<frame src=&quot;navigation-frame.html&quot; name=&quot;leftFrame&quot; scrolling=&quot;no&quot; TOPMARGIN=&quot;0&quot; LEFTMARGIN=&quot;0&quot; MARGINHEIGHT=&quot;0&quot; MARGINWIDTH=&quot;0&quot; FRAMEBORDER=&quot;0&quot; BORDER=&quot;1&quot; BORDERCOLOR=&quot;#6699CC&quot;>
<frame src=&quot;frame-index.html&quot; name=&quot;rightFrame&quot; FRAMEBORDER=&quot;no&quot; BORDER=&quot;0&quot; BORDERCOLOR=&quot;#6699CC&quot; scrolling=&quot;no&quot;>
</frameset>

The link in the left frame to collapse the menu is like this:
<a href=&quot;javascript:parent.resizeFrame('1,*')&quot;>Collapse</a>

If you need anymore info ill be glad to give it to you.

Thz
Dan R.
 
oh yea and i replaced <a href=&quot;javascript:parent.resizeFrame('1,*')&quot;>Collapse</a> with
<a href=&quot;javascript:parent.resizeFrame('1,*')&quot;><img src=&quot;icons/close.gif&quot; width=&quot;7&quot; height=&quot;7&quot; border=&quot;0&quot;></a> to give it a more &quot;windowed&quot; feeling.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top