html

Will Google index my site like this?

Suppose I have a URL in my query string. Someone told me that Google does not like it because they believe we are pulling content from another server. http://mydomain.com/?id=http://abc.com ...

pagination in css/php

two questions: --1-- it displays all the number of pages. but i'd like it to display as: << Prev . . 3 4 [5] 6 7 . . Next >> --2-- when i hover on the current page no, it should change color or increase the font-size, but when i modify the css of a:hover, all the page nos change color or size instead of the one which i'm pointi...

Other HTML serialisations?

After keeping in mind that HTML has both an SGML and XML serialisations, which are just encodings for a parser to "explode" into a DOM, I'm wondering whether there are other serialisations for HTML. A JSON serialisation? If so, are there any parsers for these alternative serialisations? ...

Sending someone a Link in Outlook that refers to a local application with a param

Hi I want to send someone a HTML Mail via my application (c#). This Mail contains should contain a clickable html link that refers to a local application. f.e. : <a href="c:\myapplication.exe -1234">click</a> It already works to send the mail but the link does not appear as a link. I also tried the "file:/// ... " thing but it does n...

How to add a class to the immediate children of an <li>?

<ul> <li><a href="">link 1</a></li> <li><a href="">link 2</a></li> <li><a href="">link 3</a> <ul> <li><a href="">link 1</a></li> <li><a href="">link 2</a></li> </ul> </li> </ul> How to add class to the immediate children 'a' of the LI, while on hover of the LI. while i mouse out of the LI. the class should be removed...

ASP.NET How to redirect to another web site from a page inside a frame

Hi folks: I get one page inside frame which intends to redirect users to another web site. However, only the the page inside the frame get changed to another web site. What kind of measure can I use to redirect whole doucment to another web site? Thank you! ...

Dynamically writing page titles and active classes with php

For some time now I've been using the following code to dynamically write in html page titles and add an active class to menu items. Is this still a good why to achieve this or are there better/smarter/optimal ways of achieving the same thing? <?php echo (basename($_SERVER['SCRIPT_FILENAME'])=='contact.php'? 'class="active"' : '');?> ...

Single quotes in JavaScript object literal

I'm looking at the Google Maps API tutorial, and I see this: <script type="text/javascript" src="http://www.google.com/jsapi?autoload={'modules':[{name:'maps', version:3, other_params:'sensor=false'}]}"></script> Why is modules wrapped in single quotes? ...

Styling definition lists - IE clear:both bug

Hi guys, I'm trying to style a definition list properly. So far I've got the style that I wanted in Firefox 3.5 and IE 8 but I couldn't get IE6 and IE7 to behave properly... I've already tried any kind of hack and trickery I could possibly think of. It seems like the "clear:both" on the dt doesn't work in IE<=7... Below is the "test pa...

I have a bunch of images being shown on click via JQuery - any easy way to animate this?

This is the (quite simple) JS code I'm using: $(document).ready(function() { $(".button-list .next").click(function() { project = $(this).parents().filter(".projektweb").eq(0); currentimg = project.find(".images-list li.current"); nextimg = currentimg.next(); firstimg = project...

How to select first empty value option in a select menu?

The following always preselects the last option, even when I set the selected attribute, but I like the first option to be preselected. <select name="filter"> <option value="" selected>Make a choice</option> <option value="1">1</option> <option value="3">3</option> <option value="7">7</option> <option value="">all</o...

{textarea} smarty php

Hi, further to a previous question, I have this code: <p class="required"> {err for="msg"} <!--{{label {t _inquiry_msg}:}}--> {textarea onblur="if(this.value=='') this.value='Skriv her';" onfocus="if(this.value=='Skriv her') this.value='';"} {/err} </p> And I want the output to be <textarea onblur="if(this.value=='')...

Does this query fetch unnecessary information? Should I change the query?

I have this classifieds website, and I have about 7 tables in MySql where all data is stored. I have one main table, called "classifieds". In the classifieds table, there is a column called classified_id. This is not the PK, or a key whatsoever. It is just a number which is used for me to JOIN table records together. Ex: classifieds ...

A better alternative than &nbsp; for showing empty HTML table cells?

It's a classic problem - when you have an empty table cell the browser doesn't render borders around it. There are also two well-known workarounds. One is to place an &nbsp; in the table cell; the other is to use the empty-cells:show CSS property. Unfortunately both have drawbacks. &nbsp; is kind of ugly when it comes to selecting text ...

is <p> a block-level or inline-level element?

hi there, i got a question when i come across the HTML 4.01 DTD: in the strict DTD, a element is defined as <!ELEMENT P - O (%inline;)* -- paragraph --> but somewhat i thought is a block-level, and all(maybe almost) user agents define as a block-level. so, i just wondering, is a block-level or inline-level element. thx....

HTML: how to set background color of item in select element

how do you set the background color of an item in an HTML select list? ...

How to make content take up 100% of height and width

I'm so close but I can't get this to work like I want it. I'm trying to get the header and the menu to always be visible and have the content take up the rest of the view screen and have it's own scrollbar when it overflows. The problem is that the width of the content isn't being stretched to the right and I get a scroll bar in the midd...

How to disable a YUI MenuBarItem from markup

I prefer creating my nav menus from markup (rather than Javascript), like in this example. Is it possible to create menus and/or menu items from markup which are disabled? I see how to use Javascript to do this (use the disabled config property), but I'm looking for some way to encode this information in markup - perhaps there's a CSS cl...

Content area not expanding with the content within it!

I have been coding a design I had been working on for a week or so and have core across a snag. While doing the HTML/CSS of one of my right column modules the content within it expands however the bg and bordered area it is within does not. htttp://www.gamefriction.com/Coded/ (url with example) http://www.gamefriction.com/Coded/css/sty...

Free audio players for website streaming

Are there any free audio players that I can use in my website? Are they customizable? I've heard of Soundmanager 2. It's a flash based player with a javascript front-end. Are there any other free players like that? ...