I'd like a little text tag to appear when I hover over an image

Get help developing custom BBCodes or request one.
Bruce Banner
Registered User
Posts: 1383
Joined: Thu Sep 25, 2014 10:36 am

I'd like a little text tag to appear when I hover over an image

Post by Bruce Banner »

I used to have a BBCode that did this but now it's not working and I can't understand why. I guess I must have altered it in some way by mistake without realising and then clicked save so the original code must now be gone.
Last edited by Mick on Thu Nov 23, 2023 8:31 am, edited 1 time in total.
Reason: Solved.
Bruce Banner
Registered User
Posts: 1383
Joined: Thu Sep 25, 2014 10:36 am

Re: I'd like a little text tag to appear when I hover over an image

Post by Bruce Banner »

I know that this code works for doing what I want because I just tested it on w3schools.com How can I turn it into a BBCode?

<img src="image url" title="text" />
User avatar
P_I
Community Team Member
Community Team Member
Posts: 2462
Joined: Tue Mar 01, 2011 8:35 pm
Location: Western Canada 🇨🇦

Re: I'd like a little text tag to appear when I hover over an image

Post by P_I »

Please keep in mind that we have a six hour bumping rule. All team members and community members here are volunteers, so we ask you to wait at least six hours before bumping your topic or, if no-one has replied to your last post, edit your last post. Thanks!

Added: Search turned up viewtopic.php?t=2612066 that might help you.
Normal people… believe that if it ain’t broke, don’t fix it. Engineers believe that if it ain’t broke, it doesn’t have enough features yet. – Scott Adams
User avatar
ssl
Registered User
Posts: 1988
Joined: Sat Feb 08, 2020 2:15 pm
Location: Le Lude, Pays de la Loire - France
Name: Fred Rimbert

Re: I'd like a little text tag to appear when I hover over an image

Post by ssl »

Sorry for my English ... I do my best! :anger_right:

:point_right_tone3: phpBB: 3.3.13 | PHP: 8.3.9
:point_right_tone4: [Kill spam on phpBB] - [Some French translation of extensions]
"Mistress, Mistress someone is bothering me in pm"
Bruce Banner
Registered User
Posts: 1383
Joined: Thu Sep 25, 2014 10:36 am

Re: I'd like a little text tag to appear when I hover over an image

Post by Bruce Banner »

P_I wrote: Wed Nov 22, 2023 10:46 pm Please keep in mind that we have a six hour bumping rule. All team members and community members here are volunteers, so we ask you to wait at least six hours before bumping your topic or, if no-one has replied to your last post, edit your last post. Thanks!

Added: Search turned up viewtopic.php?t=2612066 that might help you.
I'm not allowed to edit my posts so if I think of something new to say, I have to bump. I really don't understand why both you and the person below think that I'm looking for an image to appear when I hover over one. I said clearly in the topic title that all I'm looking for is a little TEXT tag to appear. TEXT. I don't understand how either of you could think that meant I want another image to appear.
ssl wrote: Wed Nov 22, 2023 10:58 pm Like this: viewtopic.php?t=2646691?
Bruce Banner
Registered User
Posts: 1383
Joined: Thu Sep 25, 2014 10:36 am

Re: I'd like a little text tag to appear when I hover over an image

Post by Bruce Banner »

It's alright anyway. I got it figured out.

Code: [imgTag]{URL} {SIMPLETEXT}[/imgTag]

HTML replacement: <img src="{URL}" alt="{SIMPLETEXT}" title="{SIMPLETEXT}" />

Turns out that was my original code after all, and it works fine. It was just something wrong with the particular topic I was posting in. I had another unrelated problem with that topic as well tonight so I deleted it. When I tried the above code in another topic, it worked fine.

Return to “Custom BBCode Development and Requests”