473,894 Members | 2,018 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Image replacement - Can it be clickable?

I followed Dan Cederholm's image replacement tutorial, to replace a header
tag by a logo. The h1 is clickable if no CSS is applied but it I replace
it by the logo, the area isn't clickable anymore when I pass the mouse
over the logo. Is there a way to replace a link by an image that will
still be clickable?
Thanks,

--

Kerberos.

http://www.opera.com
http://www.freebsd.org
http://www.auriance.com
http://www.osresources.com
http://exodus.jabberstudio.org
Jul 21 '05 #1
53 4993
Kerberos <me@privacy.net > wrote:
I followed Dan Cederholm's image replacement tutorial, to replace a header
tag by a logo.
Is there a reason not to just have an image in there?
It's simpler and more accessible.
The h1 is clickable if no CSS is applied but it I replace
it by the logo, the area isn't clickable anymore when I pass the mouse
over the logo. Is there a way to replace a link by an image that will
still be clickable?


Yes. Make sure that the <a> element still exists and that it fills the
full area of the heading. display: block; takes care of the second
part. The first part depends on exactly how you're hiding the real
heading.

Steve

Jul 21 '05 #2

Steve Pugh wrote:
Is there a reason not to just have an image in there?
It's simpler and more accessible.


Actully using the image replace ment is very accessible if done right.

Jul 21 '05 #3
"logic_eart h" <Th****@gd-studio.com> wrote:
Steve Pugh wrote:
Is there a reason not to just have an image in there?
It's simpler and more accessible.


Actully using the image replace ment is very accessible if done right.


The people who promote it claim that it is but the reality is somewhat
different.

Look at a page that uses it with CSS on and Images Off. Some variants
try to solve that issue but seem to end up introducing other problems.

Steve

Jul 21 '05 #4
.oO(logic_earth )
Actully using the image replace ment is very accessible if done right.


_All_ image replacement techniques I've seen so far failed with CSS
on/images off. I don't consider that accessible.

Micha
Jul 21 '05 #5
Michael Fesser <ne*****@gmx.ne t> wrote:
Actully using the image replace ment is very accessible if done right.


_All_ image replacement techniques I've seen so far failed with CSS
on/images off. I don't consider that accessible.


You are behind the times:
http://www.mezzoblue.com/tests/revis...e-replacement/

The Gilder/Levin method works quite well.

--
Spartanicus
Jul 21 '05 #6
Spartanicus <me@privacy.net > wrote:
Michael Fesser <ne*****@gmx.ne t> wrote:
Actully using the image replace ment is very accessible if done right.


_All_ image replacement techniques I've seen so far failed with CSS
on/images off. I don't consider that accessible.


You are behind the times:
http://www.mezzoblue.com/tests/revis...e-replacement/

The Gilder/Levin method works quite well.


Breaks at larger font sizes - if the text version needs more space
than the background image then the text starts to leak out from under
the image. Setting overflow: hidden; fixes that but then we're back to
a position where it fails for CSS on, Images off.

Steve

Jul 21 '05 #7
Steve Pugh <st***@pugh.net > wrote:
The Gilder/Levin method works quite well.


Breaks at larger font sizes - if the text version needs more space
than the background image then the text starts to leak out from under
the image.


I know, that's why I said "quite well". But this does not constitute
"broken" in my vocabulary, I'd classify that merely as a cosmetic quirk.

I'm not a fan of image replacement techniques, I use only one instance
of it on the index page of my personal site. There it holds up up to
200% zooming, above that the text starts leaking out from under the
image.

The only reason I used it was to see how well it worked (or not), after
having used it the only valid reason for using it is imo if it is
imperative that the text is indexed by SEs.

The proper way remains specifying the image's text as alt content, but
I'm not aware of any SE that indexes alt content in this type of
construct:

<h1><img src="fancyheade r.png" alt="fancy header text"></h1>

I can imagine a (commercial) situation where indexing of the above by
SEs is vital.

--
Spartanicus
Jul 21 '05 #8
*Spartanicus* <me@privacy.net >:

The proper way remains specifying the image's text as alt content,
You can still have CSS image replacement with this (even without server-
or client-side scripting):
<http://webdesign.criss ov.de/temp/ciwas/image-replacement>.
but I'm not aware of any SE that indexes alt content in this type of
construct:

<h1><img src="fancyheade r.png" alt="fancy header text"></h1>


<h1><object data="fancyhead er.png">fancy header text</object></h1>

should be easier to parse for them, but you'll in turn have problems with
browsers.

--
Your ad here!
Jul 21 '05 #9
Christoph Paeper <ch************ **@nurfuerspam. de> wrote:
The proper way remains specifying the image's text as alt content,
You can still have CSS image replacement with this


You seem to think that I want image replacement, I do not. Image
replacement techniques are nasty hacks, the only valid reason I can
think of for using it is, as I mentioned, situations where it is
imperative that the text content is indexed by SEs. The fact that an
image's alt content isn't indexed by SEs is a flaw in current SEs, it's
not a flaw in the coding method.
<http://webdesign.criss ov.de/temp/ciwas/image-replacement>.


I fail to see the point of this, it's an image replacement technique
(bad), that doesn't fix the one practical problem that the proper
solution suffers from.

--
Spartanicus
Jul 21 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
35576
by: Jeff Gillingham | last post by:
I'm using a stylesheet to place a small 'background image' in the upper left corner of several pages. Is there a simple way of making that image a clickable link? Thanks.
3
2058
by: inonzuk | last post by:
Hi everyone, I'm new to javascript and have the following problem: I have two image buttons: 1) <td><a href="http://localhost/gamerules.php" target="mainwindow"><img onMouseOver="return changeRules()" onMouseOut="return changeRulesBack()" name="b_rules" src="images/b_rules.jpg" width=130 height=90></a></td> 2)
3
5576
by: crazychrisy54 | last post by:
Hi there I just wondered if there is any way using GD to insert a clickable button or some clickable text into a image? It is possible to create images for buttons but what if you want a clickable button *inside* another image. I don't know if this is along the right lines but the following code puts a image inside another image. Perhaps I could then make im2 clickable or is it just not possible? Any help would be very much
0
9833
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11247
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10841
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10931
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9648
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8025
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6066
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4684
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4282
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.