html

Why is IE7 showing scrollbars on rollover?

Hi all, Can anyone tell me why IE7 shows vertical and horizontal scrollbars on hover of the My Account tab/link at the top right of http://www.myhome.ie? I've gone through the css and can't see any issue. It's also only happing in IE7. Cheers, Denis ...

Any knowledge on how to embed an image via PHPmail without using PHPMailer?

I would prefer to use what I already have and just add an image on if possible. Here is my code so far: $to = $Email; $subject = "$auth->first_name $auth->last_name left you a comment"; $message = "$auth->first_name $auth->last_name left you a comment: <br /><br /> <a href='http://www.blah.org/Profile.php?id=" . $prof->id . "'>Click he...

PHP echo duplicate rows when none exist

<html> <head> <title>Test</title> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <?php $username ="matt"; $pass = "bs12kfj"; $db = "mytest"; $tbl = "test2"; mysql_connect(localhost,$username,$pass); mysql_select_db($db) or die( "Unable to select database"); $res = mysql_query("SELEC...

Need regex (using C#) to condense all whitepace into single whitespaces

Hi, all. I need to replace multiple whitespaces into a single whitespace (per iteration) in a document. Doesn't matter whether they are spaces, tabs or newlines, any combination of any kind of whitespace needs to be truncated to a single whitespace. Let's say we have the string: "Hello,\t \t\n  \t    \n world", (where \t and \n repre...

How to add external CSS in a HTML file.

I know about CSS like this .style{ .. } I want to know how to add external css file in a HMTL page. One more thing using such external css dose it relay speed up the page load time. ...

Source Ordered Content - SOC in SEO

How much does source ordered content affect SEO optimization and ranking? Do spiders crawl SOC in an easier way? Typical html web page comprises elements in following order: header content sidebar footer (Content and sidebar exchange often in order) However source ordered content is a technique where the law is to place content and ...

how could a <ul> element receive the focus event?

I'm running the following code to trace the tagName of every control that gets focus in an HTML document: $(function() { $("*").bind("focus", function() { console.log("tabbed " + this.tagName); }); }); When this runs I can watch the firebug console and see it trace tags like "A" and "INPUT" which I'd expect to receive ...

How to set maximum height for $img but keep proportions

How to set maximum height or width for: $img_attributes= ' height=100 width=100 '. 'alt="'.$product['product_name'].'"'; ...

Detect all changes to a <input type="text"> (immediately) using JQuery

There are many ways the value of a <input type="text"> can change, including: keypresses copy/paste modified with JavaScript auto-completed by browser or a toolbar I want my JavaScript function to be called (with the current input value) any time it changes. And I want it to be called right away, not just when the input loses focus....

Is by default absolute positioning relative to the document or to…?

Hi As far as I know, absolute positioning is relative to a containing block that provides a positioning context, which by default, is the document. Thus, by default, absolute positioning should be specified with respect to the edges of html document and not with respect to the edges of a viewport (browser window)?! For example, ass...

convert spanish characters in HTML doc

I have a HTML file and it has some information in spanish. I am using a third party control to convert this HTML file into RTF document. The third party software I am using is Subsystems HTML Addon. The HTML file has <META http-equiv="Content-Type" content="text/html; charset=utf-8"> I think the subsystems software is not able to re...

Passing complex data over URL with grace

I'm thinking about using something like: <script src="http://www.example.com/?key={"param":"value"}"&gt; As you can see in the example above a JSON formatted string is being passed over the src URL. The example, of course, doesn't work because both the JSON string and the script tag use double quotes. Here are a few solutions that I ...

Item delete buttons in a table?

Hi, this is a simple html question but I would like to know the correct way of doing it. I have a table in my page, with tabular data, and it's a display of items in the database. I build the table dynamically with php, and just output html. I want to add a column "delete this entry" with a button/link/picture on every line, and when i...

collecting multiple GET or POST values

Hi I have a form that passes something like in a URL ?choice=selection+A&choice=selection+C I'm collecting it in a form with something like (I remember that $_GET is any array) $temp = $_GET["choice"]; print_r($temp); I'm only getting the last instance "selection C". What am I missing ...

PHP Server Setting Stripping HTML Posts

A client's web host recently changed servers on them and it's broken some of the administrative tools. I'm providing a YUI WYSIWYG editor for them to create content on the site. The HTML content is now being "cleaned" by something before I get to it. For example, a link tag like <a href="http://www.stackoverflow.com"&gt; gets turned i...

Changing a <div> class with JavaScript

I am trying to change the class of certain tags with an onclick() event. The basic premise is to have the background image of each tag change when the user clicks on them, sort of stimulating a "menu selection". Here is the code I have: <style type="text/css"> .navCSS0 { background-image:url('news_selected.png'); width:222px...

Tables Alignment

I need some help with aligning two tables together, i.e: having the columns line up. The first table has the headers, and the second table has the rows displayed. I'm doing this on ruby, so, I have to put the result in another table because the updating won't work otherwise(puts the data away from the parent table..) Is there a way,...

toggle button pressed color

hi, i am using toggle buttons in my application, i would like to set the backgound-color when the button is pressed. how can i know what is the proper attribute? and in general is there any place that i can know which CSS attribute has which effect on the HTML element? thanks ...

Newbie needs help on mouseover and map on HTML page to show images on mouseover...

Have small web page at www.peterbio.com/mom/test.htm Someone wrote the code with mouse over and creating image map. When you click on one of the purple balloons another image shows up. ***Need some help adding more code so that I can add another rollover-mouseover picture to a different balloon in image. I do not know how. But with a...

Increasing the Size of Object Frame to Remove Scroll Bars

I recently asked how to hide the vertical scroll bar using overflow:hidden. While the answer did work (the scroll bar is hidden), I am wondering why it's even appearing in the first place. I would think that including an object inside another page would automatically grow to the size that is needed unless otherwise constrained (which, ...