html

Problem with optimization of buttons on website page

Guys! My problem is optimizaiton of this code for IE 8 (with IE 8 first button is ok, but second doesn't work), Google Chrome (second button is ok, but first doesn't work). I've stack with it, help please. :) FIRST BUTTON <div id="spoiler"> <div> <p style="text-align: center;"><input style="margin: 10px; padding: 0px; width: 150px; fon...

How to deliver music (progressive/download) over the web without exposing the URL of the mp3s (even in webkit browsers)

I want to be able to deliver music/mp3 using a flash player but I'd like to make it so that the mp3 files cannot be sniffed... i.e. you can't use safari, firebug..etc. to find out the mp3 location using the activity window. I don't have a streaming server. Any idea? If I go with a streaming server, any suggestions on how to go about it...

HTML <option> tag tooltip

Hi, I have a tag with many child nodes. I want to keep the width of this drop-down list to a minimum size. However, there are times when the innerHTML of at least one option is very long, forcing the drop-down list box to expand its width. What I'm planning to do is to truncate the long text and use ellipses to denote that some chara...

problem in showing 3 images in a row In IE

hey guys this is my code that i used to show 3 images in row everything is fine in FF but not with IE and my code : echo "<div class=\"container mod\"><ul id=\"three-col\" class=\"press\">"; while($cat = $db->sql_fetchrow($catinfo)) { $counter++; echo ' <li> <div class="post-content"> <a class="zoom1"> <img src...

table and div layout

A table <table> <tr> <td> <button>10000000000</button> </td> <td> <button>10000000000</button> </td> </tr> </table> and a div <div> <span ><button>10000000000</button></span> <span ><button>10000000000</button></span> </div> These 2 do the same thing; shows 2 buttons next each other, my Question is how can I keep these 2 but...

How can I make the text adjacent to my checkbox clickable in php

how can I make users check on textclick? My script is: <?php foreach($getcountry_name as $key => $value) { ?> <tr> <td width="25" valign="top"> <input name="country_name[]" type="checkbo...

which one is the best way to display HTML in Flex?

I want to use an external HTML file that I can import into my Flex App at run time. I've heard of too many issues with the iFrame option, so I want to avoid that, if possible. Does anyone have any other good suggestions for dealing with this issue? ...

Floating div in html page

there is a div, <div id='show' style='display:none;'></div> I edit some contents to through javascript like, document.getElementById('show').innerHTML = el.innerHTML; document.getElementById('show').title = el.innerHTML; Also this div is shown at a mouse over. How ever the user scrolls the page the div should appear in the the vi...

Why does my div disappear when i use position:relative in IE6?

I have no margins applied to this particular div, no floats and more annoyingly it works on a different page. Below is the code for the css rule: #prizedraw-fliemore{ position: relative; top: 164px; left: -720px; z-index: 3000; } The div shows up when i use position:absolute but that is useless to me. I have tried disp...

Show DIV on MouseOver

On mouseover can this div be attached to the mouse pointer so that its contents are shown on mouseover? <div id='show' style='display:none;'></div> If so how is this done? ...

CSS style.display not working

I have the following JavaScript function to display/hide a table row based on a listbox selection. function clock_Type(id) { var clockSource = document.getElementById("clockSource"); var clockType = document.getElementById("clockType"); if(id == "1") { if(navigator.appName == "Microsoft Internet Explorer") { ...

layout problem with select fields (firefox)

The select fields have both the same size attribute, but the options having a class with a specific padding (all the same class). But an empty select field has now a different length if it has no option elements. +-------------+ +-------------+ | foo | +---+ | | | bar | | > | | | | baz...

Using Sinatra and ruby to interface to HTML buttons

Disclosure: I know nothing about web programming Background to problem: I have an environmental testing chamber testing embedded computers at various temperatures. It is controlled by a windows application. I can control the chamber via ruby and the Win32API interface of the control application. The chamber is far from my office and I w...

CSS Conformance Tool

Hi, I remember there's a javascript project that you can include on a page that applies CSS classes depending on the browsers HTML conformance. Much more fine grained than the usual "if IE" thing. The only problem is, I can't remember the name of it... can anyone help, please? ...

How do you make something to appear slowly on a page using Javascript?

Is there easier way to make something to appear slowly on webpage? I tried to incrementally increase opacity of the CSS, but it (opacity) tag is different for each browser. Is there well know Javascript function that everyone uses? Or is there any css tag? [edit] Thanks for Jquery suggestion. Is there other option? My page is very small...

Expandable Banner on Mouse over

I am currently working on a website, where my client asked me to place a Banner which expands on Mouse Over. Similar to this website ( http://www.londontown.com/majorcampaigns/ ). When we hover on LondonTown.com Banner it just expands and show rest of the Ad. I tried my level best but i couldn't figure it out, Please help me. ...

Pasting HTML Columns into Spreadsheet

Suppose you have a webpage that is displaying data in columns. I'm currently separating them using &nbsp - just to put a nice little white gap in between them. But if you do it this way and paste it into Excel or OOSpreadsheet it will put them all in one column. Is there a way to format the HTML in such a way that will allow a space to...

Problems clearing <textarea> after message is sent

I'm currently making a web-based chat system but I've run into a problem. I have set up a function in javascript to check if the user presses enter in the textarea and send the message if this has happened. The problem is every time that function is used the textarea is left with a single carriage return in it as if the value of the text...

Thickbox 3.1 IE8 scrolling problem

Hi, Having a slight problem with http://jquery.com/demo/thickbox/ In IE8, the overlay window doesn't scroll when you scroll down in the browser. So if you click something at the bottom of the browser window, the overlay window pops up but at the top of the screen so you have to scroll back up. This only happens in IE8, all other brow...

What is the best way to validate markup in a component-based web framework?

If you're using a component-based (aka Pull-based) web framework (e.g. Tapestry, Wicket, Struts et al), how do you determine that your markup passes W3C validation? Two approaches come to mind: Crawl the running app Pro: All the markup required for validation exists on the page. Cons: Can be very complicated to hit every page and...