html

How mapping of cities in a country-map is done? ( so users can search for ads nearby their cities )

I have a classifieds website. The users first have to specify their 'area of search'... I want to add a function where users also can check a checkbox to find ads 'close' to their selected 'area'. But I don't know how to 'mapp' or 'link' the areas together in a smart way. I need some advice on how to do this... For example, how is 'ra...

Which is the most versatile CSS framework for different types of layouts?

Hello All, I would like to know which is the most versatile CSS layout applicable to most or all types of different layouts? ...

Text scrolling javascript problem in firefox

Text Scrolling doesn't work in firefox (In IE it does). Markup + javascript: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; <html lang="en"> <head> <script type="text/javascript" language="javascript"> var scrollspeed = "1"; var speedjump = "30"; ...

Shorter way of specifying HTML 4.01 Strict

I am using <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; in my web pages. I remember reading in one of those XHTML vs HTML questions that one of the (small) advantages of using HTML is, a shorter DOCTYPE like <!DOCTYPE html> Can I use some shorter version like that and specify HTML ...

How do you prevent ONE radio button in a group from being selected, but allow others to deselect it?

Hi there, We have a form with a radio button group, where any one of the buttons may already be selected. We want to prevent a user from selecting one of the radio buttons, BUT we want to be able to 'deselect' that radio button by clicking on any other radio. Like so: Step 1: (initial page load) R1: enabled and clickable R2: disabled...

Is it recommended to use the <base> html tag?

I just found out about the <base> HTML tag. I have never seen it actually used anywhere before. Are there pitfalls to its use that means I should avoid it? The fact that I have never noticed it in use on a modern production site (or any site) makes me leery of it, though it seems like it might have useful applications for simplifying ...

Get a subsection of HTML document

Hi, I am trying to get a subsection of an HTML page. The functionality I am looking for is similar to the one implemented on most blogs. Usually, on the main page of the blog, you only see a section of the post, and when you click on the title you get the full content of that blog post. There must be code that exists to get that subsect...

Intelligent RegEx in Perl?

Background Consider the following input: <Foo Bar="bar" Baz="1" Bax="bax" > After processing, I need it to look like the following: <Foo Bar="bar" Baz="1" Bax="bax" CustomAttribute="TRUE" > Implementation This is all I need to do for no more than 5 files, so using anything other than a regular expr...

Using Processing on a server to create images behind the scenes

The way I see most people use Processing is for drawing an image directly onto a screen or webpage on the client side. How would one use Processing to create an image without a visual canvas, then save this image to a file? Here are the specific steps I'm interested in: Someone visits a webpage, which causes the Processing program to...

Wordpress theme problems

I've been making a wordpress theme recently and just now some of the code just stopped working. The post formatting disappeared and now I just have a paragraph with text inside it for each post! Here's the php code for the post: <?php get_header(); ?> <div id="content"> <div class="wrap"> <div id="leftcol"> <?php if (have_posts())...

How do you add a THEAD to an ASP (2.0) HTMLTable?

to Add rows, I just do this: Table1.Rows.Add(row) How would I add a thead? ...

need a mapping service like google maps - but for my intranet

i have built a solution around google maps api but realized that it doesn't work when i deploy it to my intranet. after reading it seems like you need the premier service for this. Is there any other similar maps api tools that you can use free on your intranet website? EDIT: from what i have read it seems like Yahoo allows you to u...

z-Index Preventing MouseOvers?

http://scriptbase.com/scripts/viewer.php The rounded bottom div is supposed to partially cover the thumbnails for aesthetic effect. The problem, is, though, that it seems to prevent all mouseovers in those two (inside the control box and inside the thumbnails wrapper). What's going wrong here and how do I fix it? ...

Flash movie not respecting negative margin in container HTML

I have to place a flash movie into an existing layout. It is replacing placeholder image of the same size. The DIV holding the image has a negative top margin. When the flash movie is placed in the same spot there is a gap at the top of the DIV equal to the amount of negative margin. I cannot seem to get the movie to move to the top of t...

Java servlet - export to an excell

How to make an excel file (and txt file) filled with data from a table on the html page in a servlet and send it to a browser? ...

formating HTML content into a printable report

I have been using the AJAX html editor to create content for a .NET project. The content is stored as raw HTML mark-ups. Now I need to take that content and inject it into a printable format. I've tried report writers like Crystal Reports and/or ActiveReports. Both make references that it can consume HTML, but only a subset is processe...

Problems displaying some characters

I've got an XML file from which I've extracted the following text - The Sansa Clip+ MP3 player gives you more to enjoy. Enjoy up to 2,000 songs†† with an 8GB* player, FM radio, long-life battery and voice recorder. PLUS now even more! Expand your enjoyment when you add in preloaded content cards** into the new memory ...

HTML/CSS: Create a div that always fills the entire page... and then a resizeable div within it?

I feel like this is an easy question, but for whatever reason I can't figure it out today. I need a div that always fills the entire page, no matter how large that page is. Then I need another div which I can re-size with javascript (mydiv.style.width = x; mydiv.style.height = y;). If the second div is resized to be taller than the e...

I'm having trouble positioning this button nicely..

I've been goin at it now for an 1.5hrs and I just can't figure out a way to make it the way I want. I'm kind of new with all things web, and it takes about as much time (maybe more?) trying to get things where I want and doing it in a way that is elegant. Anyways, I have two text boxes, with two labels above them and centered over the b...

Flash On IE8 Problem

Please help! I'm designing an HTML website and added an animated Flash image using the object tag. I was handcoding on Dreamweaver and before I saved it I got this message asking me if the code should be modified for compatibility with IE8. So I just clicked on 'Yes' and a 'script' folder was generated. The Flash image appears on Firef...