Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Old 06-28-2008, 01:28 PM   #1 (permalink)
Senior Member
 
AlexCuster's Avatar
 
Join Date: 08-01-07
Posts: 179
iTrader: 0 / 0%
AlexCuster is liked by many
Simple php question

Hello, I'm trying to change my wordpress theme so that it will make this line of code, which displays my head banner, so that when you click it it takes you back to the homepage.

#head { background:url(images/head.gif) no-repeat top center; margin:auto; width:893px; height:72px; padding-top:9px; padding-right: 16px; text-align:center; }

It's the head.gif that I want to make clickable... Thanks for any help you can offer.
AlexCuster is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-28-2008, 03:38 PM   #2 (permalink)
Super Moderator
 
StarLab's Avatar
 
Join Date: 10-29-07
Location: Ontario, Canada
Posts: 2,779
iTrader: 0 / 0%
StarLab is a web professional of the highest orderStarLab is a web professional of the highest orderStarLab is a web professional of the highest orderStarLab is a web professional of the highest orderStarLab is a web professional of the highest orderStarLab is a web professional of the highest orderStarLab is a web professional of the highest orderStarLab is a web professional of the highest orderStarLab is a web professional of the highest orderStarLab is a web professional of the highest orderStarLab is a web professional of the highest order
Send a message via MSN to StarLab Send a message via Yahoo to StarLab
This should work...

Code:
<div id="head" onclick="location.href='test.com';"> <h1><a title="testTitle" href="test.com"></a></h1> </div>
Also, to show that the header is clickable, add "cursor: pointer;" to your style.

Code:
#head {background:url(images/head.gif) no-repeat top center; margin:auto; width:893px; height:72px; padding-top:9px; padding-right: 16px; text-align:center; cursor: pointer;}
HTH
__________________
Larry Monte
[Torn Elements] - Regaining the Passion for Design
[Gorgeous On Life] - The world from a Cat's point of view.

"Writing is the most fun you can have by yourself!" -Terry Pratchett
StarLab is online now  
Add Post to del.icio.us
Reply With Quote
Old 07-03-2008, 05:49 PM   #3 (permalink)
Senior Member
 
AlexCuster's Avatar
 
Join Date: 08-01-07
Posts: 179
iTrader: 0 / 0%
AlexCuster is liked by many
Thanks for the help! Worked perfectly!

Last edited by AlexCuster; 07-03-2008 at 05:57 PM.. Reason: Figured it out.
AlexCuster is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-09-2008, 07:08 AM   #4 (permalink)
Member
 
Join Date: 04-22-08
Posts: 119
iTrader: 0 / 0%
Latest Blog:
None

ag3nt42 is liked by many
how is this a php question?? I think you mean html question
ag3nt42 is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-09-2008, 07:36 AM   #5 (permalink)
v7n Mentor
 
Izzmo's Avatar
 
Join Date: 11-01-03
Location: Kansas City
Posts: 1,338
iTrader: 0 / 0%
Latest Blog:
Starting p90x today

Izzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web pro
Send a message via ICQ to Izzmo Send a message via AIM to Izzmo Send a message via MSN to Izzmo Send a message via Yahoo to Izzmo
More like a CSS question!
__________________
Izzmo
Coding Guru Extraordinaire
ZeroWeb Hosting & Design - Customizable hosting for every type of user!
Izzmo is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP: simple question. iiz Coding Forum 2 02-12-2008 03:28 PM
A simple PHP Question Izzmo Coding Forum 4 10-02-2006 12:33 PM
Simple Formatting Question... CheebaHawk Web Design Lobby 1 09-29-2006 04:34 AM
Simple Question timmoyse Marketing Forum 11 09-16-2006 04:45 PM
a simple checkbox question Kathryn Beach Coding Forum 2 05-22-2006 02:10 PM


Sponsor Links
Get exposure! Contextual Links V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 10:08 AM.
© Copyright 2008 V7 Inc
Powered by vBulletin
Copyright © 2000-2009 Jelsoft Enterprises Limited.


Search Engine Optimization by vBSEO 3.3.0 ©2009, Crawlability, Inc.