Skip to content

Tag: html

Get image from object and display on HTML

I want to get an image from an object in JavaScript and display it via HTML. The text parts are working fine, like the movie name etc., but I cannot see my image. The only thing I see is black_adam.jpg as text. The image is in the same folder as my index.html. I tried to add a slash in front

Jquery sort div based on multiple conditions

I have this short bit of code to sort / ascend div by number. But I want to add other conditions to sort by. Right now, it’s only sorting it just based on points class. But I want it to also apply conditions on times and combine with points. Generally these divs sort ascend from large number to low number.

Try to hide a class when “mouseleve”?

I try to solve a problem. I have a video player on my website. I want to manipulate some classes i created like the navigation bar on the bottom of the video. The video player has a navigation bar. I want to hide the navigation bar when my mouse is not above the video: I try to move hide the

How to make a popup that only pops up once per user?

I’m a beginner in web development, and I’m trying to program a website for my class. So I watched a video on making a popup, but the popup comes up every time the user reloads the page. I need help, please. Here’s my HTML code: Here is my JS code: I tried to find an answer on google, but those

want to style the all dots of pre built html canvas background

The code is different, I apologize may I didn’t ask the question the right way, you can understand well in principle, When I’m hovering the dots get colours and connect to each other, other dots are invisible, I want that all dots should be visible all time. live example available on codepen, Answer If I understand your question correctly,

How to set textarea height using min-height?

I am trying to create a message input field, using textarea. The reason I am using textarea is to be able to dynamically change the height. To be able to dynamically change the height of the textarea and the parent divs, I have implemented this code. The code works, just fine. To be able to use this JavaScript code I