html

Hide textfield blinking cursor

Let's say I have a textfield... is there a way to HIDE the blinking text cursor? I say this because I am doing a horror/mystery website and one of the clues is to start typing anywhere. Get it? :P Maybe i can do it with javascript? ...

what is wrong with this php echo statement?

sorry i know this is a basic question, but i have been trying for hours and i cnt seem to think what is wrong with this! echo '<tr><td><img src="images/$row['picture']" alt="' . $row['username'] . '" /></td>'; is thier a more cleaner way to do this and and error free. thanks ...

CSS override with second stylesheet

I'm working on a pretty large website that has a big stylesheet already on the website. We're working with this large corporation with limited ability to make changes (no full access). We'll be applying some new styles for a specific section on the website and we've been given the green light to include a second override stylesheet (in ...

Is there a way to make a GET request without getting the body of the content?

I'm trying to do HEAD requests to follow 302 links, however this link: http://news.google.com/news/url?sa=t&amp;fd=R&amp;usg=AFQjCNGrJk-F7Dmshmtze2yhifxRsv8sRg&amp;url=http://www.mtv.com/news/articles/1647243/20100907/story.jhtml is troublesome because a HEAD request returns a 200 OK and a GET request returns the expected 302 Status cod...

How to make a Jquery Popup note

Hello, How would you make a JQuery popup Note ? This is what I currently have, Note Code Example <html> <head> <script type="text/javascript" src="jquery.js"> </script> <style type="text/css" rel="stylesheet"> #popup { border: 1px solid black; widt...

cross browser hide mouse cursor

I would like to enhance a depth effect by hiding the mouse cursor as it passes over a div, is there a method that will work across all browsers? ...

Computed column width is different than css declared width for column. How does browser decide width?

Let's say I have an html table with a css declared width of 750px. It has 5 columns and each column has a width of 50px, declared using css (all td's have a 50px width). Obviously, the sum of the columns' widths is 250px which is less than 750px. When the browser renders the table, each column has a different computed width. I have one...

Is there a "special" URL param to force SWFObject to show alt content?

I remember doing this years ago, but can't remember if it was with SWFObject. Anyone herd of this before? I guess it would basicly disable SWFObject from switching the altContent for the SWF. I though it was something like: www.mysite.com?noflash=true But can't remember the real one (if it exists). Thanks ...

HTML Standards and deviating browsers

Good evening everyone. This is a story anyone developing web applications is surely aware of - You create a site, which is well coded and elegant in the browser of your choice - until you run it in a different browser, which a lot of the time required hacking and slashing to create a functioning site. I wish to enquire the techniques u...

Is there an HTML element that is ignored during rendering?

I have this markup <html> ... some HTML ... And I need to wrap it with an element like this: <html> <div class="user-content"> ... some HTML ... </div> The problem, is ... some HTML ... can be lots of different things from raw text to complicated markup. <div> If I use a <div>, then it adds a block-level break. Meaning if I ha...

Adobe TLF and HTML

Hi, What is the best way to convert a tlf markup to HTML? I want only standar HTML without the old font tag. I think I saw a utility created by someone for this, but I can remember where it is. any ideas? Tks. ...

fade text inside DIV

OK rememebr how I wanted an IMAGE to go in and out according to a word? I don't know what I was thinking but I was wrong. I wanted TEXT to go in and out. Now what's the problem? Everything is the way I want it except for ONE thing... is it possible to be able to update the DIV HTML in a way that it FADES during the transition? Maybe us...

Variable height div with custom background-image - what is the best technique?

I'd like to produce something like the 4 boxes at the bottom of the apple.com home page, except I would like them to be variable height. The simplest techniques I can think of is having two divs. The first one containing everything except the bottom 'cap' in its background-image, and the second div with the bottom cap, like so: <div cl...

Inserting spans and classes around characters in a string of raw text

I have a string of raw text which looks something like this: 1 . . 3 . 4 . | A . A . N . | 1 . 1 . . . I sadly cannot access the source code, but need to add a span with a class to each of those characters, so that the outputted HTML would look something like this: <span class="1">1</span> . . <span class="3">3</span> . <span class...

html form button vs input type="submit" vs this.submit()?

What is the proper standards compliant semantic way to have a submit button on a form? I don't need images or backgrounds in the buttons, just simple text, maybe a gradient background with curved corners (using CSS3). These are the ways I know of: <input type="submit" value="click here"/> <button>click here</button> <span class="but...

Does AJAX work that way?

I recently got a situation where I need to set a bit in a database from 1 to 0 on web page on close event and I found there is no such event but an unload event so I thought I can generate an AJAX call from it. Now, when some one tries to close the browser, it should be closed instantly because of UE and if I will have AJAX request that...

Make an event happen in child iframe to the parent window in JavaScript?

I don't have access to this iframe's source directly, so I would like to do this, if it's possibly this way. I have an iframe generated by JS: <iframe name="temp_iframe" width="100%" height="95%" src="'+the_url+'"></iframe> And inside is a submit button and a cancel button. The submit button works fine, but I want the cancel button t...

In an HTML form, I need to generate incrementally increasing values in the dropdown options of a select tag.

Here's what I need to write for a bunch of dropdown menus: <select> <option value="23">23</option> <option value="23.5">23.5</option> <option value="24">24</option> <option value="24.5">24.5</option> [etc...] </select> It needs to increase by .5 for every option. The etc. part is where I need to repeat the process...

Do I need to use javascript to get fluid width columns and static width columns to share the same row?

I have a variable number of divs acting as columns, and I would like a variable number of them to have static widths (in pixels) and a variable number of them to expand to the remaining width in the window. If I make the fluid column widths combine to 100%, some columns will be squeezed out of the row - do I need to use javascript to sub...

Caching / moving markup in the DOM for reuse

Bit of a weird one - bound to see some head scratching and wrinkled noses on here. Currently developing this scrollable timeline that has users incrementally loading new modules of HTML via AJAX as they pan / scroll, so before long they can end up with quite a bit of markup on the page. As they "zoom" though (i.e. shift the scale of the...