Can you apply image replacement a ul?

This is a discussion on "Can you apply image replacement a ul?" within the Web Page Design section. This forum, and the thread "Can you apply image replacement a ul? are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Oct 11th, 2006, 19:15
SuperMember

SuperMember
Join Date: Aug 2006
Location: Suffolk
Age: 30
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts
Can you apply image replacement a ul?

Hi,


Can one apply the Gilder/Levin Method of image replacement to a ul? I want to replace the whole list with one background, on top of which I will then place images to be used as links as part of the navigation system.

I've tried the following coding but the image is not showing up, only the ul.

I've googled the problem, but everywhere refers to headers and not ul's.

Thanks,

R




HTML: Select all
<div id='sidebar'>
   <ul id="navigation">
   <span></span>    
         
      <li><a href="index.html"title="Home">Home</a></li>
      <li><a href="sculpture.html"title="Sculpture">Sculpture</a></li>
      <li><a href="press.html"title="Press">Press</a></li>
      <li><a href="biography.html"title="Biography">Biography</a></li>
      <li><a href="commissions.html"title="Comissions">Commission</a></li>
      <li><a href="exhibitions.html"title="Exhibitions">Exhibitions</a></li>
      <li><a href="contact.html"title="COntact">Contact</a></li>
   </ul>
      
  </div> <!-- End of sidebar -->

Code: Select all
#sidebar {  height:420px; width: 75px; background-color: pink; float: left; border-right: 2px solid black; }

ul {list-style: none; font-size: 0.9em; inside; position: absolute; margin: 0px; line-height: 2em; } /* if image fails */
 
#navigation { width: 75px; height: 420px; position relative; }
#navigation span { background: url(navigator.gif} no-repeat; position: absolute; width: 100%; height: 100%; }
Reply With Quote

  #2 (permalink)  
Old Oct 11th, 2006, 19:36
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
Re: Can you apply image replacement a ul?

Clue me in here. Are you saying that whatever li is hovered over, you want the background of the whole navigation block to change?

BTW. The title attribute is meant to be descriptive and provide additional information, particularly for people using assistive technology and the like, not just a repeat of the link text.
Reply With Quote
  #3 (permalink)  
Old Oct 11th, 2006, 20:03
SuperMember

SuperMember
Join Date: Aug 2006
Location: Suffolk
Age: 30
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Can you apply image replacement a ul?

Hi Geoff,

The problem is an extension of the problem I posed a few weeks back, basically my friend wants the navigation bar to look similar to:



My plan is to hide this ul so that you only see it or touch it if the background image fails.

When the image works you will see the background image which will just be white with possibly the person's name.

Floating over the background image will be the name of each page. Each page's name will be a separate image and will act as the link.


---------

Re the 'title' should it say something like 'Link to Biography', or should it be even more elaborate?

Thanks for this tip and for all your advice .

Ruby

Last edited by rubyfruit; Oct 11th, 2006 at 20:18.
Reply With Quote
  #4 (permalink)  
Old Oct 11th, 2006, 21:20
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
Re: Can you apply image replacement a ul?

I can't get my head around any way of doing this without involving JavaScript. Exactly how I haven't figured yet.

By image fails I assume you mean fails to load? Keeping in mind that a correctly coded page tells the browser how much space to allocate to an image and if the image is not available for any reason, you get the familiar white block with the little cross in it, somehow you have to detect this situation and bring your <ul> in front of that empty block.

Why do you think this is likely to happen?

Regarding the 'title'. Never start with 'link to...' The reason for this is that screen readers automatically add those words, so the user would hear, 'link to link to...' Gets a bit confusing.

Assuming that the site is about a particular artist for example, the link might say something like; 'a biography of ... who specialises in oil painting'.
Reply With Quote
  #5 (permalink)  
Old Oct 12th, 2006, 02:35
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Can you apply image replacement a ul?

Unless you have an unreliable server, there really isn't much point in providing a fail-safe for a background image that doesn't load.
Reply With Quote
Reply

Tags
apply, image, replacement

Thread Tools

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
Apply transition to a div blkskull JavaScript Forum 0 Feb 26th, 2008 14:00
Replacement for Front Page pwholmes Starting Out 4 Feb 2nd, 2008 08:59
i-Frame replacement with new script technique gribble JavaScript Forum 1 Jul 9th, 2006 22:24


All times are GMT. The time now is 04:19.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43