Skip to content
Advertisement

Tag: css

Disable Drag and Drop on HTML elements?

I’m working on a web application for which I’m attempting to implement a full featured windowing system. Right now it’s going very well, I’m only running into one minor issue. Sometimes when I go to drag a part of my application (most often the corner div of my window, which is supposed to trigger a resize operation) the web browser

How to load up CSS files using Javascript?

Is it possible to import css stylesheets into a html page using Javascript? If so, how can it be done? P.S the javascript will be hosted on my site, but I want users to be able to put in the <head> tag of their website, and it should be able to import a css file hosted on my server into

How to create a tag with Javascript?

I’m looking for a way to insert a <style> tag into an HTML page with JavaScript. The best way I found so far: This works in Firefox, Opera and Internet Explorer but not in Google Chrome. Also it’s a bit ugly with the <br> in front for IE. Does anyone know of a way to create a <style> tag that

Print only?

How do I print the indicated div (without manually disabling all other content on the page)? I want to avoid a new preview dialog, so creating a new window with this content is not useful. The page contains a couple of tables, one of them contains the div I want to print – the table is styled with visual styles

jQuery hover and class selector

I wan’t to change the background color of a div dynamicly using the following HTML, CSS and javascript. HTML: CSS: Javascript: EDIT: I forgot to say that I had reasons not to want to use the css way. And I indeed forgot to check if the DOM was loaded. Answer Your code looks fine to me. Make sure the DOM

Advertisement