Entrance Chat Gallery Guilds Search Everyone Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining the forum??
October 03, 2025 - @980.97 (what is this?)
Activity rating: Four Stars Posts & Arts: 52/1k.beats Unread Topics | Unread Replies | My Stuff | Random Topic | Recent Posts Start New Topic  Submit Art
News: :skull: Websites are like whispers in the night  :skull: Guild Events: PowerPC Activity Week!

+  MelonLand Forum
|-+  World Wild Web
| |-+  ✁ ∙ Web Crafting
| | |-+  ☔︎ ∙ I need Help!
| | | |-+  iframe scale with image??


« previous next »
Pages: [1] Print
Author Topic: iframe scale with image??  (Read 261 times)
signfrog
Newbie ⚓︎
*
View Profile WWW


⛺︎ My Room

Guild Memberships:
Artifacts:
Joined 2025!
« on: September 21, 2025 @309.95 »

for this project im trying to do a few things.

1, i want the div area on the left to be the same size as the iframe on the right, and for them to scale together.

2, and for this one im completely lost, but id like to have it so that when someone hovers over the image, clickable labels appear pointing to different points on the image

worldbuilding index hheres the page in question. tysm!
Logged
IndigoGolem
Jr. Member ⚓︎
**
View Profile WWW


⛺︎ My Room

Artifacts:
Joined 2025!
« Reply #1 on: September 21, 2025 @855.82 »

Number two is something i figured out a while back but have yet to try. I think you can use an imagemap (GIMP can generate one pretty easily with Filters>Web>Image Map) and instead of putting links in parts of the image, use title text. I haven't made an imagemap in a while but i think that should look something like:
<map name="example">
   <area
   shape="circle"
   area="75, 45, 75"
   title="Hover text here">
</map>
<img usemap="example" src="whatever.gif">
It's not perfect, since you still have to hover over an area for a couple seconds to get the text to appear. There might be something you can do to make that happen faster but i don't know what.

I'm not sure how you could make the div and iframe scale together. I'm sure there's a way with CSS, but i'm not great with that stuff. Good luck.
Logged

candycanearter07
Hero Member ⚓︎
*****
View Profile WWWArt


i like slimes
⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: candycanearter
Itch.io: My Games
RSS: RSS

Guild Memberships:
Artifacts:
chansey!Goomy, I Choose You!Suck At Something September - Did It!uh oh! a pigeon got in!Artsy Candy CaneJoined 2024!
« Reply #2 on: September 23, 2025 @205.12 »

SVG images scale better, and you can provide <a> regions and embed images directly to create a pseudo image map.
Logged

new to oldnet be nice





Artifact Swap: jimboSweet Stonecards all the way downGreen Drink
Pages: [1] Print 
« previous next »
 

Melonking.Net © Always and ever was! SMF 2.0.19 | SMF © 2021 | Privacy Notice | ~ Send Feedback ~ Forum Guide | Rules | RSS | WAP | Mobile


MelonLand Badges and Other Melon Sites!

MelonLand Project! Visit the MelonLand Forum! Support the Forum
Visit Melonking.Net! Visit the Gif Gallery! Pixel Sea TamaNOTchi