html

Regarding Microsoft API: IHTMLWindow2::execScript Method

In MSDN, it is decleared as in http://msdn.microsoft.com/en-us/library/aa741364(VS.85).aspx : Syntax HRESULT execScript( BSTR code, BSTR language, VARIANT *pvarRet ); Parameters code [in] BSTR that specifies the code to be executed. language [in] BSTR that specifies the language in which the code is executed. The la...

PHP: Displaying Korean Text in a Webpage

How to display Korean Text in a webpage. i have been using these meta tags and headers <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="content-language" content="ko"/> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"/> ini_set('default_charset', 'UTF-8'); header('Content-Ty...

Replace page content before file loads?

Hi! I wanted to know, is there any sory of scripting that I can use so that I can simply change one little thing and then the content will change for multiple pages? Maybe PHP or the htaccess file. What I want to do is make an "Under Construction" page for my website, that I can periodically turn on or off. Right now, the method I am us...

HTML 5 video custom controls

Like many web developers I'm looking forward to streaming video that utilizes the new HTML 5 <video> tag. Browser support definitely isn't wide enough yet, so using a Flash/SWF fallback is a must. This got me thinking: in Flash it's possible to highly customize the playback controls (pause, play, stop, seek, volume, etc.) in HTML 5?. Wh...

html table to powerpoint

Hey guys, I have an odd request. I have made an application that produces an html/printable invoice in a table format. What I am trying to do is figure out how to take such a table, which may have 3 or as many as 20 rows on it depending on who's using it, and paste it into power point. Any idea on where to start? I'll buy something if...

Is there any tools for check html quality?

I know about html, css validation and some rules in pagespeed about css performance. Is there any all in one tool for checking? May be it can check some best practice for html markup. ...

jQuery 1.4 ajax callback, html() stripping external JS from response

Using jQuery 1.4 I've come across an issue with external JS in an ajax response being removed when accessing it using html(). I'm creating an endless scrolling effect for a tumblr theme using an ajax request to load the next page. Tumblr outputs JS in audio and slideshow posts to render <embed> elements (Flash players) to show the conte...

jQuery - LavaLamp menu with multiple images?

Hi, I'm trying out the jQuery Lavalamp menu and I'm trying to alter it and understand how it works at the same time. Thing is, all examples I've found consist of basically two images. The background and the left image. That ok, but I want to create a menu where it consists of three images. The background, the middle and the left. And t...

Why are my div elements shifting when the container div has overflow: auto set

Here is an example of the offending code... Note, this code works as expected in FireFox. The problem is in Internet Explorer. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html xmlns:v="urn:schemas-microsoft-com:vml"> <head runat="server"> <title></title> <script type="text/javascript" src="https://www.goo...

Is there a decent HTML-table-generator class in PHP?

I'm looking for a decent class in PHP which will generate complex HTML tables, i.e. it should support colspan/rowspan and individual CSS classes for rows, columns and cells. ...

Disable html rendering in combobox dropdown list

With ExtJs 3.1 My Ext.form.ComboBox is built with a store in which some values are like this : "value1", "<value2>", "value3". The problem is that "<value2>" is interpreted as a HTML tag when the combobox dropdown list is displayed. And i don't want that. Any idea? ...

doesnot show select value

Hi All, I am trying the jeditable jquery plugin on a raw html. What has happened is it doesn't store the selected value. When I select ay value from the drop down menu the value doesnt reflect instead "Click to Edit" comes up. I am stuck please help. Following is my code: <head> <script src="http://ajax.googleapis.com/ajax/libs/jquer...

CSS: How to make a block to cover all width of parent block

Hi, I've come across the same issue several times already. When I display one block with the float property, the next block starts to overlape the first one. e.g. Following block of code .row_item{ width: 30%; display: block; float: left; padding: 4px; margin-left: 5px; } So if in html I have: <div class="row_item"> <a href="/a...

CSS/HTML: What is the correct way to make text italic?

This is not a noob question! What is the correct way to make text italic? It seems to me that we have the following options available to us when making text italic: <i>Italic Text</i> <em>Italic Text</em> <span class="italic">Italic Text</span> <span class="footnote">Italic Text</span> The first example uses the old way. <i> has no se...

html select label based on value in java script

Can I get html select option label based on option value <select id="xx"> <option value="i_Have_value">I Need This Label</option> <option value="i_Have_value2">I Need This Label2</option> </select> By using jsf selectOneMenu and rich:comboBox in single form, i landed up in this kind of requirement. ...

in PHP, how to remove specific class from html tag?

given the following string in PHP: $html = "<div> <p><span class='test1 test2 test3'>text 1</span></p> <p><span class='test1 test2'>text 2</span></p> <p><span class='test1'>text 3</span></p> <p><span class='test1 test3 test2'>text 4</span></p> </div>"; I just want to either empty or remove any class that has "test2" in it, so the resu...

How will the key features of HTML5 work, contrast to HTML4?

Please write code. How will HTML5 code differ from HTML4? ...

Gradient-filled contentEditable text in HTML

Can I have such effect in HTML without using an image? The text should be editable with this effect. ...

CSS relative positioning

I am developing a web page with dynamic dimensions i.e I first read the size of the canvas and adjust my elements widths and heights accordingly. if(!window.JSFX) JSFX=new Object(); if(!JSFX.Browser) JSFX.Browser = new Object(); if(navigator.appName.indexOf("Netscape") != -1) { JSFX.Browser.getCanvasWidth = function() {ret...

default load of a single location

Hello, I want to load always a single location in google-maps using javascript and html. thanks v.srinath ...