html

Javascript add ID to HTML href.

Hi everyone, I have a livesearch script that i need to populate my html menu with information. i have a menu how looks something like this: <a href="?page=page&id=">Menu item</a> what i'm looking for is a piece of code that would do this to the link: <a href="?page=page&id=1">Menu item</a> i have a Javascript that pulls out value ...

How do I get my page title to have an icon?

I would like to have my site's logo shown in the icon area of the title rather than the default white document. Exactly as stackoverflow has it. ...

[jQuery] - slideUp multiple divs

Hello! How can i make sure that several divs are slided up? Right now I have this function: $("div#personal").click(function() { $("div.1").slideUp("slow", function () { $("div.2").slideDown("slow") } ); }); What i would want to do is to make sure that all divs that are named: div.1 div.2 EXCEPT THIS ONE div.3 div.4 div.5 is ...

Canvas Animation Kit Experiment... ...how to clear the canvas?

I can make a obj to use the canvas to draw like this: MyObj.myDiv = new Canvas($("effectDiv"), Setting.width, Setting.height); Then, I use this to draw a rectangle on the canvas: var c = new Rectangle(80, 80, { fill: [220, 40, 90] } ); var move = new Timeline; move.addKeyframe(0, { x: 0, y: 0 } ); c.addTimeli...

Add HTML 5 doctype to XDocument (.NET)

When creating a doctype for an System.Xml.Linq.XDocument like this: doc.AddFirst(new XDocumentType("html", null, null, null)); The resulting saved XML file starts with: <!DOCTYPE html > Notice the extra space before the closing angle bracket. How can I prevent this space appearing? I'd like a clean way if possible :) ...

<head profile="http://gmpg.org/xfn/11"> what is this ?

Hi all I got this code from the wordpress <head profile="http://gmpg.org/xfn/11"&gt; What does this means? what is the use of this code.? :-) ...

What is the easiest way to expand HTML escape codes in UNIX?

My cUrl call is returning HTML code like: &quot;Some stuff.&quot; and I'd like to convert it to a UNIX string like: "Some stuff." Is there a way to do this without using search and replace? ...

HTML Entities with jQuery

I would like to use replace the value of a submit button with "Loading& hellip;" (without spaces). The problem is that when I click the button I still see "& hellip;" instead of three dots. Here's my code: $("#myid").val("Loading"); Should I enter the ellipsis directly from keybord in the code above? Is it safe with UTF-8? ...

Problem images firefox

Hi guy, I have a big problem with my web site (you can see here), several user can't see images with firefox. I use too firefox but I don't have this problem. These users use firefox 3.5.2 with windows XP or VISTA. I have no idea to find the problem. Have you any idea ? Thanks a lot. ...

How to prevent scrollbar from repositioning web page?

I have a website with center-aligned DIV. Now, some pages need scrolling, some don't. When move from one type to another, the appearance of a scrollbar moves the page a few pixels to the side. Is there any way to avoid this without explicitly showing the scrollbars on each page? ...

HTML: Floating left and right resolution / resize problems by %

I am having issues with the below HTML when resizing the window; 1: Right bar suddenly drops down when the width is resized too small. 2: Spacing between the content and right bar gets larger as the width gets larger. <style type="text/css"> #content { width: 80%; float: left; height: 500px; border:2px solid #00ff00; } #righ...

CSS content behind Adobe Acrobat Reader

Is there a way to put CSS-div content over a embeded Adobe Acrobat Reader session? I've tried with CSS z-index: -1; on the iframe Acrobat Reader launches in but no luck. Any suggestions? ...

Any solution for reducing browser compatibility problem while writing css style as a web designer/web developer

Any solution for reducing browser compatibility problem while writing css style. ...

Stop resubmitting a page after a post with F5

After submitting a form with post method f5 will resubmit that. What's the best to avoid this without redirecting a page. Idon't like to disturb the user like this. Stackoverflow are immune to f5 but i don't see any redirection after asking a question. ...

how to put flash (.swf) in a page?

i'm planning to use a .swf file as a header. this won't work. <img src="exactheader.swf" width="650" height="140" /> can you tell me how? ...

html - div on the centr

Hello, how can i set div position at the center of the page with size, for example, 80%/80%. UPD: margin: 0 auto; works, but only for horizontal alignment. And i also need vertical. ...

HTML/CSS: Is it possible to make a table that can have its column selected?

It's kinda difficult to explain what I want to achieve (and feel free to modify the title if you can think of a better one), so I'll give you an example: Street: First Lane South side 28 City: Duckburg Country: Disneyland ZIP: 1234567890-XY This is what I want the user to see. But I also want the user to be able to se...

Best way to create a div with Label: Textbox and have it nicely centered?

What's the best way to have the following? Name: [Textbox] Inside a div? I find that the Name: part doesn't center nicely with the textbox, especially with a small font. I want the Name: part to be centered vertically. In some cases, the left hand part can be quite long and wrap onto multiple lines, like this: All known addresses: ...

changing color of rounded corners button with CSS

thanks a bunch in advance! i was able to make a rounded corner button using CSS. i like to be able to mouseover the button, and the entire thing changes its color, not just the inner most div. plz help! my assumption is that iam supposed to have some kinda javascript with onmouseover="", correct? here's the page: http://biozenconsulti...

HTML: Making a link lead to the anchor centered in the middle of the page

I have a link to an anchor on my html page. When the link is clicked it causes the page to scroll to the anchor so that the anchor is at the very top of the visible part of the page. How can I make the page scroll so that the anchor will be in the middle of the page? ...