![]() |
![]() |
||||||
|
|||||||
| Tags: background, link, url |
![]() |
|
|||
|
if your using the image as a button then just insert the image as an image and wrap it in an <a tag creating a link.
if your still wanting to create a link from the cell then inside the <td which defines the cell add the following. HTML Code:
<td onclick="document.location.href='http://www.google.com'">
__________________
PHP video tutorials - The building blocks HTML, CSS, PHP, Flash, Photoshop, Javascript Pop in and say Hi Last edited by nirvana : 08-28-2008 at 10:16 AM. |
|
|||
|
if you want the cell to act like a button then add the image as an image, not
as a background and then wrap the image in an <a tag with and href attribute value (a standard link) if you still want to make the cell clickable then add the following to the defining <td <td onclick="document.location.href='http://www.google .com'"> |
|
|||
|
<td onclick="document.location.href='http://www.google .com'">
Do this at your own peril. Such things applied to anything like table cells, paragraph tags, span tags, etc., usually always produce disappointing and unexpected results. The more reliable and predictable way to make an entire cell a link would be to make the cell's contents be the link, and then make that anchor tag display:block to fill the cell's width (you may also have to then set the anchor tag's height to also fill the cell's height). -- Murray --- ICQ 71997575 Adobe Community Expert (If you *MUST* email me, don't LAUGH when you do so!) ================== http://www.projectseven.com/go - DW FAQs, Tutorials & Resources http://www.dwfaq.com - DW FAQs, Tutorials & Resources ================== "AXEmonster" <nirvanadesign@msn.com> wrote in message news:g9684e$nq0$1@forums.macromedia.com... > if you want the cell to act like a button then add the image as an image, > not > as a background and then wrap the image in an <a tag with and href > attribute > value (a standard link) > > if you still want to make the cell clickable then add the following to the > defining <td > > > > <td onclick="document.location.href='http://www.google .com'"> > |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
- Contact Us
-|-
Adobe Dreamweaver Forums -|-
Archive -|-
Top -|-Rules/Disclaimer-|-Help/Support-|-Advertise