Adobe Dreamweaver Forums



Last 10 THreads :         Trouble using variables to name and instantiateTextFields (Last Post : jc_2006 - Replies : 1 - Views : 2 )           »          Background color code is not working. Please help (Last Post : Tim G - Replies : 9 - Views : 10 )           »          error (Last Post : Tim G - Replies : 1 - Views : 2 )           »          DWCS4 Menus (Last Post : DouglasWD - Replies : 0 - Views : 1 )           »          Can't open more than one Macromedia product at a time (Last Post : ChandaBB - Replies : 7 - Views : 8 )           »          DWCS4 Fade/Appear image load question (Last Post : DouglasWD - Replies : 0 - Views : 1 )           »          NetStream progressive FLV download current frame (Last Post : AsafH - Replies : 0 - Views : 1 )           »          Creating Newsletters (Last Post : Yovav - Replies : 2 - Views : 10 )           »          CS4 Div Tags Help Needed (Last Post : Ian Edwards - Replies : 4 - Views : 5 )           »          Letters are cutoff (Last Post : shlomi75 - Replies : 0 - Views : 1 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Dreamweaver: Main > Dreamweaver General
 
Tags: , ,



Reply
  #1 (permalink)  
Old 08-28-2008, 09:43 AM
emesma
 
Posts: n/a
Diggs:
Default background url link

How do I get the background of a cell link to a specific page , what am doing now is insterting a JPG photo as a background to the cell...but dont know who to make the whole cell link .

tnx



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-28-2008, 10:13 AM
nirvana nirvana is offline
Member
 
Join Date: Aug 2008
Posts: 34
Diggs: 0
Default

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'">

Last edited by nirvana : 08-28-2008 at 10:16 AM.
Reply With Quote
  #3 (permalink)  
Old 08-28-2008, 02:31 PM
AXEmonster
 
Posts: n/a
Diggs:
Default Re: background url link

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'">

Reply With Quote


  #4 (permalink)  
Old 08-28-2008, 05:50 PM
Murray *ACE*
 
Posts: n/a
Diggs:
Default Re: background url link

<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'">
>


Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 11:10 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk