html

How to Preload Images without Javascript ?

In one of My Layout there are some large images (come from XML) which shown when I mouse hover on some some of the link, but when the Page loads and when i rollover It takes time to Load that Image. Note: there are fix 5 images (not dynamic) I dont want to use JavaScript to Preload Images any Solutions? I am Not Using Hover menu or so...

How to host static html files on AppEngine?

Is it possible to host a static html website on AppEngine? And how to make my domain name work with it? ...

Open HTML page

I have an .html file (X) that depending on some value should immediately open another .html file (Y) when opening the .html file (X). What's the best way to implement this within javascript? Also I want that when the user presses 'Refresh (F5)' on Y .html the page that should be loaded again to be the one that started the current one (X...

Capture mouse in Firefox

In IE exists .setCapture(); .releaseCapture() functions. What's the equivalent of these functions in Firefox without using jQuery? (my client does not want to use it) ...

Alternative to getElementsByTagName

Since the getElementsByTagName() function is new (DOM-1?) I wanted another more reliable method to get a reference to an element based on its tag name/id. Edit- Without using a framework, since I need to cut down on size; so 10-20K for a framework is unacceptable. I just need the JS code that can fetch an element ...

Alternative to getElementById

Since the getElementById() function is new, I wanted another more reliable method to get a reference to an element based on its id. Since I need to cut down on size, 10-20K for a framework is unacceptable. I just need the JS to fetch an element. ...

Width absorbing HTML elements

Im trying to think how to do this with html elements. There is nothing special about the colors, so I don't need to make them images. Do note that the text is right aligned. Also, the color bar goes up to the text from the left. So this could be implemented by having the text float right with background color white, and a div with th...

Placing a Click event on an achor tag in html from javascript?

Hi there, Can anyone help, seem to have an issue placing a onclick event of an anchor tag, it works on an image.. I have this this.whereAreWe = document.getElementById('where_are_we'); this.whereAreWe.onclick = this.whereAreWe; I have placed a A tag using the id of "where_are_we" ... but it never executes.. if I change it to an imag...

Jsp download file size.

We are running tomcat, and we are generating pdf files on the fly. I do not have the file size before hand, so I cannot direcly link to a file on the server. So I directly send the output. response.setContentType("application/force-download"); OutputStream o = response.getOutputStream(); And then I directly output to this OutputStre...

IE 7/8 rendering Iinline (Floated Divs) as block: widths do not adjust to content?

I have a block element (DIV) who stretches across an entire page. It contains multiple floated DIVs of variable width. This element can live on many web pages (anyone can put it on their website). In FF on all sites it is rendered correctly and the floated DIVs are only as wide as their inner contents. In IE, it works sometimes- but on o...

regular expression to remove links

I have a HTML page with <a class="development" href="[variable content]">X</a> The [variable content] is different in each place, the rest is the same. What regexp will catch all of those links? (Although I am not writing it here, I did try...) ...

Reload an IFRAME without adding to the history

I'm changing an IFRAME's src in order to reload it, its working fine and firing the onload event when its HTML loads. But it adds an entry to the history, which I don't want. Is there any way to reload an IFRAME and yet not affect the history? ...

How does one go about writing a simple WYSIWYG editor in JavaScript?

In my project I need to write small WYSIWYG editor (just let users make text bold/italic/underline and maybe some more). So I wouldn't like to use monsters like tinymce or fckeditor. My question is what HTML elements and javascript functions do I need to know for it? An HTML element in which I can edit and format text is a very interesti...

Strip HTML from Text JavaScript

Is there an easy way to take a string of html in JavaScript and strip out the html? ...

displaying html in flash player

Is there a way to render HTML pages within flash? ...

Is there any way to track whether an email has been opened?

Hey, I'm beginning to work on mailing-list software we use internally (EDIT: though we send emails externally as well, so we can't enforce policy on mail clients). Is there any way to track whether, when I send an email to a particular user, that email has been opened as opposed to being marked as junk or being deleted without being op...

PHP Uploading Files

I'm having a problem uploading files in PHP. When I submit, $_FILES[] is empty. I feel like this is such a n00b question :/ My form: <form method="post" action="uploadfile.php"> <input type="hidden" name="MAX_FILE_SIZE" value="300000" /> Image: <input name="ImageFile" type="file" /><br /> <input type="submit" value="Add Image" /><b...

How to create a modal popup using javascript and CSS

Actually, two questions: How can I create a modal popup with background color of gray? Also I need to create for a cover background color only to table itself. Not to overall page. How do I do this using javascript and css? Thanks & Regards Ravi ...

Embed flv file as banner

Hi, My client provided me with a .flv file to place on their home page as a banner. I have searched the internet for a while but did not come accross to a proper way of doing it. First of all, is it "the" way of doing such banners? or are they supposed to provide me with a .swf instead? If .flv is ok, then how do I embed it (no play con...

Best reference sites for HTML and JavaScript programming

Best reference sites for HTML and JavaScript programming: SitePoint: DOM JavaScript, HTML, CSS -- Search W3Cschools: DOM, JavaScript, HTML, CSS, XML, Multimedia, Server-side Mozilla Dev Center: DOM, JavaScript, JS Lang, AJAX, HTML, XHTML, SVG, Standards Quirksmode: DOM Javascript, CSS, Compatibility ZVON: HTML, XML, CSS DevGuru - Java...