html

Influence of tiling image size on page rendering speed

If a background image is tiled, do the dimensions of the image file have any influence on page rendering speed? I imagine that the smaller the image, the more blits have to be performed to fill the target area, so the longer the page will take to render[1]. Do you suppose this is true? I'm asking mostly from the perspective of the iPho...

converting html+js to exe

I have an HTML file with embedded Javascript, and I want to convert it to a stand-alone exe. Is that possible? How can I do it? Any html2exe tool out there? P.S. If you must ask why, it's a very simple text-processing utility, but certain people want it (for reasons beyond me) as a desktop application. ...

HTML blank I want to erase...

Hello everyone there! I have a new problem that bugs me ... I am making a web page that I want to be fixed with no scrolling and most important I want my main Div to fill aaaaaaaaall my available space... I made this code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&g...

How to keep an unordered list centered within the screen??

I have the following unordered list within a div: <div id="footer"> <ul> <li>Blog</li> <li>|</li> <li>About Us</li> <li>|</li> <li>Privacy Policy</li> <li>|</li> <li>Copyright</li> <li>|</li> <li>Contact Us</li> <li>|</li> <li>Press Inquiries</li> </ul> </div> I want this footer text to stay centered i...

Regex to get src value from an img tag

I am using the following regex to get the src value of the first img tag in an HTML document. string match = "src=(?:\"|\')?(?<imgSrc>[^>]*[^/].(?:jpg|png))(?:\"|\')?" Now it captures total src attribute that I dont need. I just need the url inside the src attribute. How to do it? ...

how to avoid listing previously entered values in certain text fields of a form? HTML, PHP

Hi In my HTML FORMs, when I focus certain text fields they list down history of values entered previously. Is it possible to avoid this auto-drop-down? I am not looking for some browser settings tips for my computer, instead, I want these settings for all of the users of my website filling a form. Will it also be possible to apply the...

How can I display rows within rows in table?

I am trying to give the effect of general headings in this table and then subdivide such heading into three categories. The table should continue this subdivisions all the way to the end. I see that I can probably insert a table within a row insert, but don't want to saturate myself with tables. Is there a way to get this effect in a sim...

Selecting created HTML with jQuery

Why doesn't this work? var string = '<b>Hello</b> this is just a <b>test</b>'; console.log($(string).find('b')); I would expect Firebug's console to give me the two <b> elements, but instead I get an empty array. However, if I change it to this: var string = '<b>Hello</b> this is just a <b>test</b>'; console.log($('<div/>').html(str...

jQuery won't replace anymore after the first time

As an easter egg for a part of one of my sites, I have in my footer #left tag a "Easter" egg that changes each time you click it, revealing funny messages: $('#left').append(" <span><a href='#' id='dontclick1'>Don't click.</a></span>"); // time for some fun $('#dontclick1').click(function() { $('#left span').html("<a href='#' id='dontc...

Simple HTML that comes out looking way off?

I cannot for the life of me figure out why my table is turning out this way. The images and text should be lined up: HTML: <div id="items"> <div class="category"><h1>Apparel</h1></div> <div class="list-product"> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td width="50" align="center" style="p...

Pre-loading external files (CSS, JavaScript) for other pages

I'm curious if there is an efficient way to wait for the front page of a site to load, and then pre-load CSS and script files that I know will likely be needed for the other pages on the site. I want the front page of the site to be as fast as possible (lean and mean). It's likely that the user will not immediately click on a link. Sinc...

IE6 NonSecure Items

Hey all.. So I'm chasing down the non-secure item on my page. I am using the JQuery library to make an accordion menu. I suspect that the maybe the problem. Does anyone know if this href would be problematic? I can't find any blank src paths or http:. Thanks Nick ...

How do i output a dynamically generated web page to a .html page instead of .py cgi page?

Hi So ive just started learning python on WAMP, ive got the results of a html form using cgi, and successfully performed a database search with mysqldb. I can return the results to a page that ends with .py by using print statements in the python cgi code, but i want to create a webpage that's .html and have that returned to the user, a...

How to make links break out of iframe when you only control the iframe page (not the framed pages)?

I have a site that displays other sites through an iframe on certain pages. It does this in order to display a toolbar that is relevant to the reader (like Facebook and Owly does). However, when the user chooses to leave the original site I want the bar to go away. As you might gather, I don't control the sites in the iframe, and they're...

HTML tables

<table cellspacing="0" cellpadding="0"> <textarea rows="5" cols="60" name="question"></textarea> <tr> <td><input type="text" readonly="1" value="127.0.0.1" /></td> <td><input type="submit" value="Skicka" /></td> </tr> </table> equals to http://i42.tinypic.com/14j18xz.jpg How can I do so that the submit button stays where i want i...

HTML Agility Pack or HTML Screen Scraping libraries for Java, Ruby, Python?

I found the HTML Agility Pack useful and easy to use for screen scraping web sites. What's the equivalent library for HTML screen scraping in Java, Ruby, Python? ...

Embedded Quicktime movie not displaying in IE

I have a .mov file embedded in a web page, using nested object and embed tags. It displays fine in Firefox & Chrome, but just displays a Quicktime icon with a question mark over it in IE6-8. Before it displays the icon, it runs the quicktime activex control and flashes the beginning of the movie up. Any ideas on what could be the issu...

How to make last cell of a row in a table occupy all remaining width

Hi, In the below HTML fragment, how can I make the width of a column that contains 'LAST' occupy the remainder of the row, and widths of columns that contain 'COLUMN ONE' and 'COLUMN TWO' be just wide enough to contain their content, and not larger. Thank you <html><head> <style type="text/css"> table { border-collapse: collapse; }...

IE printing out source code at random (seems very nondeterministic)

Hey. the busted website is: www.mgxvideo.com/mgxcopy-alpha-3, and the specific error that I'm getting is the thing where IE prints out all my source code. As far as I can tell, the error is appearing at random in IE6, 7, and 8, but it's a commonly occuring error. I'm looking for explanations, debugging tools, fixes. Anything is appreci...

Linux Firefox Spaces Things Differently

I am having trouble with Linux spacing of things, in multiple APIs. Thoughts? On the linked page below, there is a button with a magnifying glass on the map - in the upper left corner - directly to the right of the Home Map button. In Firefox 3 on Linux, this button appears to be on top of the Home Map button. On a Mac or Windows machi...