Artifacts Gallery Guilds Search Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining?
Autumn, 01 Nov 2026 - @852.34
Forum Activity: Three Stars ~ Boop! The forum will close in 148.beats! Random | Recent Posts | Guild Recents
News: :4u: ~~~~~~~~~~~ Guild Events: 19: laptop
Super News: ~~MelonLand's Halloween Profile Design Contest 2026~~
+  MelonLand Forum
|-+  Da Web Revival
| |-+  ✁ ∙ Web Crafting
| | |-+  ☔︎ ∙ I need Help!
| | | |-+  Putting JS script inside of an HTML table?


« previous next »
Pages: [1] Print Embed
Author Topic: Putting JS script inside of an HTML table?  (Read 2018 times)
tarraxahum
Sr. Member ⚓︎
****
View Profile WWWArt


Xx_O_o_xX
⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: tarraxahum
Matrix: Chat!
iMood: tarraxahum

Guild Memberships:
Artifacts:
First 1000 Members!Joined 2022!
« on: Winter, 15 Dec 2022 @937 » Toggle Font Embed

I honestly don't know how to formulate that title any better than this.

So here's the thing. There's this music player for tumblr themes and websites, SCM Music Player. Great thing, lets you choose a skin or even build your own, lets you create a playlist using YouTube videos (which means you don't have to upload mp3s anywhere), etc.

And I had this brilliant idea to have multiple of such players on a page by sticking them inside separate sections of an HTML table.

Well, what I'm quickly learning is that the script for the SCM player is coded in a way that it can only stick to the top or the bottom of the whole page, and putting the script code inside the td section of the table code does nothing to change that.

Which is where I'm faced with the brutal realization that I don't know JS that well (I'm mostly at "putting bricks of pre-made code together" stage of my website making experience…) to know how to do the thing I want to do.

For context, the code for the player looks like this:

Code
<!-- SCM Music Player https://www.scmplayer.net -->
<script type="text/javascript" src="https://www.scmplayer.net/script.js" 
data-config="{'skin':'skins/cyber/skin.css','volume':50,'autoplay':false,'shuffle':false,'repeat':1,'placement':'top','showplaylist':false,'playlist':[{'title':'VALKILLY -TOKYO RED (HUBRID Remix)','url':' in Reverse-Zombified','url':' ></script>
<!-- SCM Music Player script end -->

And the corresponding script goes thusly and scares my newbie butt with its complexity.

And what I had in my head before I got the reality check looks like this (roughly mocked up; the table is borderless but basically every element is in its own section, this is a 3x2 table):

https://i.ibb.c:ha:X82TnHP/Screenshot-45.jpg

Soooo this is the point where I gesture to all of this helplessly and ask if anyone would be so kind and point me to whatever could be done with the table code or the script (suppose I could download it to tweak) to make my vision come true and squish the player in that table frame.

Or to some other way to make a YouTube powered music player that could be squished into a table more easily.

Or just tell me that I'm in over my head, that works too! :grin:

Logged


https://tarraxahum.neocities.org/pofub.png
https://i.postimg.cc/3Nyfy9zP/userbar.png
https://i.postimg.cc/13ZPQNNr/uservodka.png
"Why change the past, when you can own this day?" (c)
Melooon
Hero Member ⚓︎
*****
View Profile WWWArt


So many stars!
⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: melon
iMood: Melonking
Itch.io: My Games
RSS: RSS

Guild Memberships:
Artifacts:
Caught by RubbereonYou're a Star!Flinstone VitaminWavy Shoulder-Length Hair with BangsBug!Top Hat
« Reply #1 on: Winter, 16 Dec 2022 @054 » Toggle Font Embed

Iv not looked at the code much - it looks annoying :tongue: but a super hacky solution that should totally work would be to put an iFrame in each player box of your table and then have the separate players in separate html files in your iframes. They'd be forced into the table because they'd be forced to stay inside their iframes! You'd have to fiddle a bit to make it look cohesive but I think it should work without too much trouble as long as you get the sizes right.

« Last Edit: Winter, 16 Dec 2022 @058 by Melooon » Logged


everything lost will be recovered, when you drift into the arms of the undiscovered

Artifact Swap: Have a chillpillRed Tulip
cinni
Sr. Member ⚓︎
****
View Profile WWW


believe in your dreams <3
⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: cinni

Artifacts:
First 1000 Members!OG! Joined 2021!
« Reply #2 on: Winter, 16 Dec 2022 @259 » Toggle Font Embed

not that i have a solution, but i found from personal experience that scmplayer does not work in iframes :sad:

edit: upon searching i found this! https://github.com/blackle/blamscamp looks like it could be right up your alley, i'll hafta look further into it

« Last Edit: Winter, 16 Dec 2022 @262 by cinni » Logged

tarraxahum
Sr. Member ⚓︎
****
View Profile WWWArt


Xx_O_o_xX
⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: tarraxahum
Matrix: Chat!
iMood: tarraxahum

Guild Memberships:
Artifacts:
First 1000 Members!Joined 2022!
« Reply #3 on: Winter, 17 Dec 2022 @870 » Toggle Font Embed

Okay I'm back, can confirm, scmplayer does not work in iframes :tongue:

looks like it could be right up your alley, i'll hafta look further into it

I will look into it, thanks! From what I see at the first glance it still uses mp3s stored on the website or elsewhere, and I'd hoped to cheat the system with SCM's ability to play from YouTube, but maybe I just need to bite the bullet and load some songs onto a dropbox :grin:

Logged


https://tarraxahum.neocities.org/pofub.png
https://i.postimg.cc/3Nyfy9zP/userbar.png
https://i.postimg.cc/13ZPQNNr/uservodka.png
"Why change the past, when you can own this day?" (c)
Pages: [1] Print Embed 
« previous next »
 

Melonking.Net © Always and ever was! SMF 2.0.19 | SMF © 2021 | Privacy Notice | Send Feedback | Supporters ♥ 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
@000 Melon
Land
Forum Art Hub Chat Webring Explore Random Recent Tenement Arcade Want to Login or Join ? Web Craft Guide Graphic Catalogue Wiki Help I'm Lost! Link Land Newsletters Image Stream Minecraft: Online
Zap!
Passport Sites tamaNOTchi Asatte Add your site?
Aero Archive Onio Cafe 32 Bit Cafe Status Cafe