html

Frame buster buster

I'm trying to use a frame-buster-buster, as discussed in this question: http://stackoverflow.com/questions/958997/frame-buster-buster-buster-code-needed It works great at stopping the frame buster, unfortunately it also stops any change of the url at all - including clicking links or typing a new address in the address bar. Is there an...

Show html formated text on IceFaces

I'm saving html and/or rich formated text in a database, and I'm trying to show it in an IceFaces text field, but it doesn't show the propper format (line breaks or urls). Is there a tag or a component that shows me the proper rich text or html format? Thanks! ...

How do you overlay a div over an img, and show another div onmouseover?

I have a list thumbnails that lead to larger counterparts when clicked. I'd like to show the image title in a div, at the bottom edge of the thumbnail. Also, when a mouse is moved over the thumbnail, it shows a 2nd div (containing text) over the entire thing. Whats the best way of doing that? If a js library is required, jquery is prefe...

Font size and line height for a Web page

What is the best value for font size and line height where readability is concerned? I myself prefer huge font size and greater line height like the one used in Dive into Python 3. ...

how to stop # links that call javascript functions from jumping to top of page

How do you I stop my links like this: <a href="#" onClick="submitComment()"> From jumping to the top of the page after the click? ...

How do I bind a database field to an HTML TITLE element in ASP.NET 2.0?

I know how to do this in MVC: <title> <%= Model.Title %> </title> I also know how to bind a SQLDataSource or ObjectDataSource to a control on a form or listview. But how do I render a field from my SQLDataSource or ObjectDataSource directly into the HTML? ...

How to align elements on the inside edge of a <div> tag?

How do I align an element on the inside edge of a tag? That is, so that it works like absolute positioning but only inside the tag. I think a way it would work is if it were possible to force the element to think the tag was the actual page, but I don't know if this is possible/ideal. EDIT: http://www.flickr.com/photos/chustar/373637...

javascript menu like mtv

Hey people I'm seeking an js menu like the link below. http://www.mtv.com/mtv2/ jQuery would be a plus! ...

html form firefox focus

All right, this one is going to sound very weird and I don't know if any of you have experienced the same problem. I have a very simple login form (in html) which includes username, password and submit button and works fine on IE but when I run it in Firefox (3.xxx) and click on password textfield, the focus jumps on username and select...

php regex for html

hey guys, I'm trying to make a regex for taking some data out of a table. the code i've got now is: <table> <tr> <td>quote1</td> <td>have you trying it off and on again ?</td> </tr> <tr> <td>quote65</td> <td>You wouldn't steal a helmet of a policeman</td> </tr> </table> This I want to replace by: quot...

How can I apply a background-color to several elements on hover?

I have a few lists that are displayed as inline-blocks, creating the illusion of rows. Unlike tables, I cannot format rows straightforwardly. I want to apply a background color to each < li > in the row when one is hovered over. Is this possible through CSS and names/IDs? Thanks. Mike CLARIFICATION: After reading the answers, I reali...

Animating two divs at same time onload, jquery help

I am trying to make a sort of "scales" look, where two divs will slowly animate up and down like being weighed on a scale. I could use some help with the functions though please, I can not get two to animate simultaneously on page load, and I need them to go up, then back down, then up, etc... Make sense? Here is what I have so far, I a...

How to set the last-clicked anchor to be a different color from all other links?

a:link {color:#FF0000} /* unvisited link */ a:visited {color:#00FF00} /* visited link */ a:hover {color:#FF00FF} /* mouse over link */ a:active {color:#0000FF} /* selected link */ The pseudo-classes (link, visited, hover, active) don't do exactly what I want which is to highlight the last-clicked link on a page to be a different color ...

Dots in a list

Can you tell me the code for dotted line on a long list for a table/column i.e. Cell Column Manicure.............$10.00 Where do I put it in the code as well, don't know css, yes html Thanks in advance ...

How can I take common large chunks of oft-reused HTML source code?

A slew of pages I've written for one of my web projects share some 144 identical lines of code, reproduced in each file. If I update one of those lines, I have to go back through ALL of the pages that share the code and update for each page. Is there a straightforward way to include HTML from a separate file? And for bonus points, since...

Best way to use a server side language for development, but deploy to static HTML

We have a client for whom we build a lot of template based sites. Ideally we would use something like kohana (http://www.kohanaphp.com/) to handle the templating and make doing site wide changes a breeze. Unfortunately our client cannot (and will not) host any server side code (and before you ask, this will not change and hosting the f...

Centering a canvas

How do I markup a page with an HTML5 canvas such that the canvas 1.) Takes up 80% of the width 2.) Has a corresponding pixel height and width which effectively define the ratio (and are proportionally maintained when the canvas is stretched to 80%) 3.) Is centered both vertically and horizontally You can assume that the canvas is the...

Internet Explorer Blocked download file

i use jquery post function to go to server and bring the link to file download. when the func come back and return the link, i try to open a popup or iframe with link source , to popup save/open file window i try this window.open(data.link,'Download','top=20,width=3,height=3,left=20'); or document.getElementById('download').src=...

site not rendered properly.

Hello everyone, I am working on a website build using cakephp framework. My problem is that sometimes it is not rendered properly. either the css is not applied or is half applied. After refreshing page 4 to 5 times it displays properly. The problem is with all browsers. This problem occurs quite frequently while browsing the website an...

Meaning of attributes & parameters in HTML flash tag?

In the below code can anyone explain me the all the parameters and attributes used, why all these are used and whats their meaning here. What parameters and attributes are recommended and what are not to use with a flash tag in a HTML page. <object id="vf_flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpd...