Wrox Programmer Forums
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Dreamweaver (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 14th, 2006, 12:35 AM
Registered User
 
Join Date: Apr 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default div tag as link

So I've been trying to figure this out... I have a bunch of div tags (php generated from sql database.) and I want to make them so you can click anywhere in the div tag and it opens the link in a new window. This is all fine and dandy, but there is also a link IN the div tag that I want to do the SAME thing.

I got it to work just fine except when I use a normal link in the div tag it then opens 2 identical windows since there is one from the div tag using javascript (onclick) and the other from the link itself.

I tried making the link dead and have an onmouseover that changes the status to the link location (because yes this is important to me,) but the problem there is that the onMouseOver="status='blah.htm'" doesnt work for firefox (yes i put in the: return true;)

So I guess the real question is.. how can I make a link out of a div tag w/o javascript - OR - how do I make the div javascript disabled when i click the hyperlink? if i can..

If you need more information to make sense of all this let me know, and thanks for the help.






Similar Threads
Thread Thread Starter Forum Replies Last Post
how to loop through a div tag? Byock Classic ASP Basics 0 December 19th, 2006 02:52 AM
stop writing in Div tag Samikaraeen HTML Code Clinic 2 April 9th, 2006 01:29 AM
DIV TAG marclena ASP.NET 1.0 and 1.1 Professional 2 May 24th, 2005 11:14 AM
XSLT incorrectly closing my div tag Blaise XML 2 June 2nd, 2004 07:56 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.