SiteExperts.com Logo Home | Community | Developer's Paradise
User Groups | Site Tools | Site Information | Search
 Main Menu
 Forums
SiteExperts.com Forums
All Discussions

SiteExperts Feedback
The Lounge
Dynamic HTML
Site Design/ Critiques
HTML and CSS
XML Technologies
The Wireless Internet
Internet Explorer
Microsoft .NET
The Server
Technical Support

Sponsored Links

User Groups : Forums : SiteExperts : Dynamic HTML :

Previous DiscussionNext Discussion
 How can I open a div from a URL
I have a page that has div's that are hidden until they are opened with a javascript onClick. Is it possible to have a link to this page that will have one of the div already opened. the code below is the textlink that opens the div on the page, and the div it is opening. The div has alot of text in it so I removed it. I want to be able to have another page that will link to this one, but with the div below already opened.

<td nowrap="true"><a href="javascript:;" onClick="return expandcontent('sc2_2', this)">Travel Insurance</a></td>



<div id="sc2_2" style="display:none;">

</div>

Started By mwenn1 on Apr 27, 2006 at 2:49:25 PM

7 Response(s) | Reply

View All Replies | Goto Page: 1
raphpell on Apr 28, 2006 at 5:07:53 AM

I dont understand the thing you want to create but we can display a DIV with the over event of links.

<STYLE>
a.popup:visited       { color: #000; text-decoration:none; border-bottom: 0em solid #000; }
a.popup                 { color: #000; text-decoration:none; border-bottom: 0em solid #000; position: relative; left:0px; font-weight: bold; }
a.popup SPAN       { display: none; }
a.popup:hover        { color: #000; cursor: default; border-bottom: 0.2em solid lime; }
a.popup:hover .popbox { background: red; display: block; position: absolute; z-index: 10000; top: 0em; left: 0em;  padding: 1.5em; }
</STYLE>


<a class="popup" href="#ceci" name="ceci">
 <SPAN class="popbox">Some text</SPAN>
 Label
</a> 

It works without JavaScript !


View All Replies | Goto Page: 1

To respond to a discussion, you must first logon.

If you are not registered, please register yourself to become a member of the SiteExperts.community.

User Name
Password
Copyright 1997-2000 InsideDHTML.com, LLC. All rights reserved.