Entrance Chat Gallery Guilds Search Everyone Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining the forum??
October 03, 2025 - @982.52 (what is this?)
Activity rating: Four Stars Posts & Arts: 53/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!
| | | |-+  A few questions about coding


« previous next »
Pages: [1] Print
Author Topic: A few questions about coding  (Read 175 times)
hauntchockula
Newbie ⚓︎
*
View Profile WWW


⛺︎ My Room

Artifacts:
Joined 2025!
« on: September 28, 2025 @737.66 »

I'm having trouble with the list of links to my socmed accounts. The links keep opening in the iframe instead of opening in a new tab or redirecting the user to the respective sites. It's really annoying since I swear my gallery page link works just fine and loads up a different HTML and CSS.

The code of my link page is here for those curious (I link to my kinky stuff in this. I omitted those things since I know people may not be comfortable w it):
Code
<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>The web site of hauntageddon</title>
    <!-- The style.css file allows you to change the look of your web pages.
         If you include the next line in all your web pages, they will all share the same look.
         This makes it easier to make new pages for your site. -->
    <link href="/style.css" rel="stylesheet" type="text/css" media="all">
  </head>
  <body>
    <h1>Where the fuck else am I:</h1>

    
      <a href="https://bsky.app/profile/ronwerks.bsky.social" target="_blank">Blusky</a>
      <a href="https://gretchieboo.straw.page/" target="_blank">strawpage</a>
      <a href="https://www.pinterest.com/hauntpsychicdungeon/" target="_blank">pimterest</a>
      <a href="https://www.youtube.com/@hauntpsychic">yoobtoob</a>
      <a href="https://officiallyfckingdone.tumblr.com/" target="_blank">tumblr</a>
      
    
  </body>
</html>

Also, I got a general coding question. How can I improve the appearance of this site? I want the GIFs and such to be positioned more on the side of the page, rather than them landing wherever. I also want to create an iframe for the YouTube playlist. I'll try to make a mockup of what I want sometime. I really need to refresh my HTML/CSS coding knowledge. I swear this shit would be so much easier if I could just arrange visually and copy the code down.

The homepage index HTML is this rn:

Code
<!-- base template by teppyslayouts.neocities.org -->
<!DOCTYPE html>
<html>
<head>
	<title>Any hole is a stole</title>
	<link rel="stylesheet" type="text/css" href="style.css">
	<meta name="viewport" content="width=device-width, initial-scale=0.1">
</head>
<body>
	<div class="wrapper">
	  <img src="lil-devil.gif" class="top-left-image">
		<div class="header">
			<a href="home.html" target="content"><img src="header.gif" class="header-image"></a>
			<div class="menu">
				<a href="home.html" target="content">Home</a> / 
				<a href="blog.html" target="content">Blog</a> / 
				<a href="about.html" target="content">About</a> / 
				<a href="links.html" target="content">Links</a> /
				 <a href="art/artgallery.html" target="_blank">Gallery</a> 
			</div>
		</div>
		
		<div class="main">
		  
			<iframe name="content" src="home.html"></iframe>
		</div>
	</div>
	<img align="left" src="dinoglobe.gif">
	<img align="top-left" src="duckie.webp">
	
	<iframe align="right" width="150" height="150" src=" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</body>
</html>

Edit: made my mockup. This is made out of a zoomed out screenshot (75%) so just keep that in mind

« Last Edit: September 28, 2025 @770.97 by hauntchockula » Logged

Any hole is a troll or whatever the saying is
Furbisms
Full Member ⚓︎
***
View Profile WWWArt


What's up party people?
⛺︎ My Room
StatusCafe: furbisms
iMood: Furbisms
RSS: RSS

Guild Memberships:
Artifacts:
DiamondKurbyJoined 2025!
« Reply #1 on: September 30, 2025 @14.50 »

If you want a link to open in a new tab, try using target="_blank" in the a tag.

Also, if you go to the playlist on youtube and try to share it using the share button, there should be an option to embed the playlist on a page. I have a few playlists embedded this way.
Logged

hauntchockula
Newbie ⚓︎
*
View Profile WWW


⛺︎ My Room

Artifacts:
Joined 2025!
« Reply #2 on: September 30, 2025 @951.27 »

I have target="-blank" attached to the links, so idk wat's happening. I also was referring to the type of thing antiamorous has on their website (https://antiamorous.neocities.org/). THat music of the now box is roughly wat I wanna achieve. Albeit, I don't know how to achieve it.
Logged

Any hole is a troll or whatever the saying is
TheFrugalGamer
Hero Member ⚓︎
*****
View Profile WWWArt


⛺︎ My Room
Itch.io: My Games
RSS: RSS

Guild Memberships:
Artifacts:
See A Bug Summer 2025 ParticipantGreat Posts PacmanFirst 1000 Members!Pocket Icelogist!Joined 2022!
« Reply #3 on: October 01, 2025 @644.91 »

So apparently this is a security feature that gets triggered because the content in your iframe isn't from your own site, so the content isn't trusted:

https://stackoverflow.com/questions/22808065/how-to-make-all-links-in-an-iframe-open-in-new-tab

The site you linked gets around this by putting the link outside of the iframe rather than inside it. Can you link to the content on under the iframe itself?
Logged


Artifact Swap: VurbyPride
hauntchockula
Newbie ⚓︎
*
View Profile WWW


⛺︎ My Room

Artifacts:
Joined 2025!
« Reply #4 on: October 01, 2025 @874.76 »

I probably could but I do feel guilty having to trash my original content for the link page. Then again maybe I could rework it into something else. A page for my fanfic and of work maybe?
Logged

Any hole is a troll or whatever the saying is
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