Skip to content
Advertisement

Tag: dom

Elementbyclass is not animating my element

NO JQUERY Please My animation is not working properly I tried to use document.getElementsByClassName but it won’t work at all there’s no error is just that the element is not animating properly. I want to do a quick change of color and also a small lettering animation but it will not implement on click, nothing will happen. Please help also

JS select tag following an tag containing “foo”

So I’ve got this little chrome extension project and I’m trying to figure out how to find the first “ul” element on the page that comes after an “h2” element that contains a particular word. Example of what the web page would look like… However the nature of varying page code means that it may looks more like this… Or

Add vertical line along tree view when expanded

I am trying to add a vertical line along first li elements when they are expanded and remove when they are closed but its not coming out. Will li::after not do the job?. please help me with this. This vertical line should be along the first level of heirarchy only I have created a treeview with three list items and

play random video on each visit/refresh with iFrame javascript

How do I create a random video to play every time a user visits/reloads the page with Javascript? For example, if one person were to go onto my domain, the iFrame would try to load any of the .mp4 files inside of my media file directory where it has like 4 different .mp4 videos. Here is my code below. Code:

Advertisement