Hi Bernd
You could do this with a variety of CSS techniques (hide the text and
have a background image).
In jQuery you could do something like this:
$(document).ready(function() {
$('#logo').html('<img src="image.gif" />');
});
You'd have to have an ID attached to the P.
<p id="logo">Text to replace</p>
You can read up on html( val ) at: http://docs.jquery.com/Attributes/
html#val
Personally I'd have a DIV and replace the contents of that rather
than stick an image in a P.
Trusts this helps
Duncan
– – – – – – – – – – – – –
Sprocket Web Design
www.sprocket.co.nz
– – – – – – – – – – – – –
On 23/10/2007, at 12:12 PM, bjb wrote:
Hi,
I'd like to replace a word in a text with an image,
something like
<p>this is the logo</p>
with
<p>this is the </p>
any ideas?
best regards
Bernd
--
View this message in context: http://www.nabble.com/replace-single-
word-with-image-on-the-whole-page-tf4674239s27240.html#a13354510
Sent from the jQuery General Discussion mailing list archive at
Nabble.com.