html

Why doesn't www.linux.org.il look properly in MSIE 7?

I'm the maintainer of http://www.linux.org.il/ and it doesn't look properly in Microsoft Internet Explorer 7. The problem I see is that the navigation bar appears to the top of the page's main text instead of to its right as in Firefox. Does anyone know how to fix it in MSIE 7 (and if possible - also in MSIE 6)? I should note that in Fi...

Send Text to a Port Using Javascript

I recently got a new printer (specifically a HP Photosmart C6380 if that helps) that allows me to send text to port 9100 to print. Telnetting into it and typing text to print works fine, but I'm wondering if I could make a webpage using HTML and Javascript that can send text directly to it. I'm currently using the code from the article...

Superscript registered mark '®' inside select menu

Is is possible to have a superscript registered mark "®" inside a select menu? If so, how is this done? Can you use CSS to achieve this? ...

embedding audio in html - ie and firefox using php...

I'm trying to create an audio captcha system for the visually impaired. I have a system that will glue several wave files together, but I'm having trouble embedding them in ie and firefox. <script type="text/javascript"> function EvalSound(soundobj) { var thissound=document.getElementById(soundobj); thissound.Play(); } </script> <embe...

What is the best way to handle style tags when loading HTML with AJAX in IE 6 or 7?

Our AJAX framework works such that it sends back a snippet of HTML that might contain a tag. We then take that snippet of HTML and set it to be the innerHTML of an element. In IE 6/7 it appears to ignore the tags and so the returned HTML isn't styled properly. I'm wondering if other people have run into similar problems, and if so, ...

How can I align images on my MySpace page?

I want to put pictures at the top of my myspace page above the ad on my band profile. I can put one picture up just fine, but when I try to put pictures on top of one another they just overlap each other. I would like to do something like this. Any tips for how I can fix this? I used: <style type="text/css"> body { background...

CSS 2.1 compliant HTML to Microsoft Word conversion?

I've found a superb HTML to PDF converter in Prince XML. Now I'm looking for something of similar quality to produce Word documents from HTML + CSS. This is on PHP/Linux. ...

Modify javascript to work without form?

I would like to use this to hide/expand columns: http://www.fiendish.demon.co.uk/html/javascript/hidetablecols.html but remove eveything having to do with the form. The java script function must be changed accordingly but I am not having any luck. Any suggestions? Thanks. ...

Get all hrefs as an array in jQuery

My code looks like this: <ul id="ulList"> <li class="listClass" id="id1"><a href="http://link1"&gt;Link 1</a></li> <li class="listClass" id="id2"><a href="http://link2"&gt;Link 2</a></li> <li class="listClass" id="id3"><a href="http://link3"&gt;Link 3</a></li> </ul> Now I like to get the following: All links as an array All id...

Why are (X)HTML 5 and XHTML 2 separate standards?

Is there a reason why these two standards are being developed separately? They seem to be solving the same problem but what are the differences and, if they are to remain separate, what roles are they expected to take in web development in the future? ...

making a constant heading - css problem

I have an AJAX application which has used CSS divs to create panels on the screen, which are loaded separately and in succession, depending on what was loaded before it. The bottom "panel" is a table showing a list or records from a database. At the top of the database is the name of the table, and I would like a way to have it be always...

Customizing the scroll bar

Can we change the appearance of scroll bar? I mean we want to change the image of the scroll bar, so it can match our web theme. more specifically, i'm pointing at the scroll bar in <div style=overflow:auto> If it can't be done, then is there some other way to make our own "scroll bar", which use our own image? Perhaps if we're insa...

css problem with constant heading

I am trying to have a table header, in a seperate div stay in place while a div undernearth is able to scroll al arge list of records. Both divs are in a div named Layer 3. Hereis the css file I am using: #Layer3 { position:absolute; width: 89%; height: 40%; left: 10%; top: 56%; background-color: #f1ffff; ...

css div not being recognized

Hello, I have the following css code: #Layer3 { position:absolute; width: 89%; height: 40%; left: 10%; top: 56%; background-color: #f1ffff; } #Layer3 h1 { font-size: medium; color: #000033; text-decoration: none; text-align: center; } .tableheader { border-width:10px; border-style:solid; } .tablecontent { height: 95%; ...

For images, what is the benefit of using the name element? name="...."

I want to know what the difference is between alt="" and name="" Would it be better to put the filename within the alt tag, or the description of the photo? What makes better sense, both from SEO and validation stand-point? ...

The IE Fieldset Background Color Bleed Bug

Setup: I have an HTML page with a fieldset element. The background color of the fieldset element is different from the background of the page. The border of the fieldset has a slightly darker color that the background. Problem: In Firefox only the area inside the border has the specified background color. In IE7 t...

What external resources are loaded when window.onload event is fired and what is the loading order of the resources?

Since a single web page may contain lots of external resource: external javascript, external css, images, applets, flash, etc., usually my conventional wisdom tells me that the window.onload event is fired when all the linked resources are finished downloading(though the external resources are usually downloaded in multiple threads or pr...

How to force caching of image with meta refresh?

I have a statistics page which has a meta refresh tag on it. <meta http-equiv="refresh" content="10" /> How do I stop it forcing a refresh of the images in the page too? I've tried setting Cache control but the browser (IE7) still refreshes the 50+ images in the page. Response.Cache.AppendCacheExtension("post-check=900,pre-check=3600...

Why does this jQuery work differently after I move to a different page then hit the back button?

I'm making a simple navigation menu for a site. You create an ul with id menu, and should be pretty simple from there. I have some simple css to give all the lis the correct background image, then some jQuery to change the look of an li when the user mouses over. It works pretty well, but there's one problem. When the user clicks on ...

What is the best way to style alternating rows in a table?

Obviously, the actual style of the odd/even rows will be done via a CSS class, but what is the best way to "attach" the class to the rows? Is is better to put it in the markup, or is it better to do it via client-side javascript? Which is better and why? For simplicity's sake, lets assume that this is a large table, 100 rows, and that ...