html

PHP: Convert special characters to HTML character codes

Hey, I'm developing a CMS for a customer and he needs to edit stuff and use special characters such as ç and ®. However, I don't want him to have to enter the character codes like ®. Does anyone knows a good way to automatically convert those characters using PHP? Thanks! ...

How to open the homepage in FULLSCREEN with javascript without opening a new window ??

How to open the homepage in FULLSCREEN with javascript without opening a new window ?? ...

PHP: htmlentities not working with variable

Hey, I'm using htmlentities() to convert characters like Ç and ® to its character codes. I'm getting the texts from the MYSQL database. while($row = mysql_fetch_array($array, MYSQL_NUM)){ echo "<div style='float:left; margin-right:40px;'> <div style='width:148px; height:141px; background-image:url(uploads/".$row[0].")'> <img src...

HTML Document Viewer with possibility to mark/highlight text in C# / .NET

Our company has a lot of electronic manuals in HTML and PDF file format. We want to create a document viewer in .NET (C#) which works as a library and learning tool: Mark and highlight text: User must be able to select a "Hightlight" Tool in the application to mark text (This will be directly inserted in the source as Text for example...

z-index maximum value

Possible Duplicate: Mininum and Maximum value of Z-INDEX What is the maximum value I can use for z-index? Does it depend on the browser? ...

How to open a new window in FULLSCREEN with javascript ??

I am using this code but it doesn't work because the new window is half of the my screen ( 1280x800px ): <a href="javascript:void(0);" onClick="window.open('http://www.stackoverflow.com', '', 'fullscreen=yes');">Open Full Screen Window</a> Why ? ...

html - controlling how many options show in a select element

So I have a drop down (select) element. The problem is that if there is a long list in it, then it "drops" upwards instead of downwards. Is there a way to say that it should scroll rather than show all of them at once? I know there's "size" but that's how many are visible at once (I only want one visible, like normal) Or is the reason...

How do you make a .mov "click to watch" so that it is not downloaded immediately?

On my website, I have an embedded video (.mov) which opens and begins to play immediately when the user opens the page. I would like to make the site easier to use by making an image of the first frame which users can click on to begin the video. What's the best way to do this in HTML/javascript? ...

How to divide a large text into multiple chunks, all with the same max-height?

CSS3's column-module allows you to divide your text into a multiple columns. Either by 1) specifying the column-height property (all columns will have the same author-defined height, the column count is dynamic) or, 2) specifying the column-count property (all columns have the same computer-generated height, the number of columns is ...

Minimize html, doubts and questions.

Hi all. Minimizing html is the only section on Google's Page Speed where there is still room for improvement. My site is all dynamic and the HTML is already Deflated so there is no reason to put any more pressure on the server (I don't want to minimize pages real time before sending). What I could do was to minimize the template fil...

HTML Vs Markup Validation Service: attributes construct error

why the Markup Validator says it has error in the html code below? Line 287, Column 80: attributes construct error …ion" value="set=1&amp;page=2" /><ul><li><a href="http://campusfaithhub.org/vie… http://validator.w3.org/check?uri=http%3A%2F%2Fcampusfaithhub.org%2Ffood%2Ffood-should&amp;charset=%28detect+automatically%29&amp;doctype=I...

Target tabs within tabs with #hash URL (or otherwise)

I am using the jQuery Tools library Tabs. You can find them here: http://flowplayer.org/tools/tabs/index.html My basic markup is something like this: $("#tab-holder ul").tabs("div.tab", { history: true, api: true }) $("#profile-sub-tabs ul.menu").tabs("div"); The #profile-sub-tabs is another tab interface within the main #tab-holder ...

HTML file upload: is there a way to force content-type="application/octet-stream"

Hello, We are custom handling file uploads on the server end due to embedded limitations. The HTML file upload code used in a Firefox browser: <html> <body> <form action="http:///192.168.1.1/upload.cgi" name="form_1" method="post" enctype="multipart/form-data" > <input type="file" id="file" name="filename" content-type="ap...

divs and background images

so here is the problem i'm trying to solve, i want to use a background image that is 500px wide for my divs that has a drop shadow on the right edge however i want the text to stop and wrap after 475px and i still want the entire image to show up to include the dropshadow. is there anyway to accomplish this? html code: <!DOCTYPE html P...

How do I use regular expressions to parse HTML tags?

Hi, Was wondering how I would extrapolate the value of an html element using a regular expression (in python preferably). For example, <a href="http://google.com"&gt; Hello World! </a> What regex would I use to extract Hello World! from the above html? Thanks in advance, James Eggers. ...

Opening HTML pop-up windows

I'm trying to figure out the best and simplest way of opening HTML pop-up windows. UPDATE: This is not intended to spam. By pop-up I mean a new window without the toolbars. I need it for something similar to the facebook connect API. I'm currently using a js <script type="text/javascript"> function popUp(URL) { id = "hello"; eval("pag...

Website Help - Creating a better ChatRoulette

I know html and css, and a little mysql and php. I want to make a site similar to chatroulette. What languages and technologies do you recommend I learn and use? And could you please describe the best way to faciliate the video chat aspect of the site? ...

Pass along & sign with href to php page help

I have this: browse_cat.php?cat_gr='Mopeds &amp; Traktors'"> The browse_cat.php contains this to fetch the above "category": $cat=$_GET['cat_gr']; echo $cat; This echo outputs the first word only "Mopeds". It wont change if I replace the &amp; with &. What is the problem here? The adress bar when I enter browse_cat.ph...

My text loses its 'bold' when I change its font-size property...

I have some text on my website that I would like to make 'bold', and its font-size to be 'x-small'. But whenever I apply the font-size, the text loses its bold. When I remove the font-size, and the text goes back to default, it's bold again. What's going on here? <span style="font-size:x-small; font-weight:bold;">TESTING</span ...

Javascript vs HTML (Which takes more time to load)

What would i be better off having a lengthier Javascript or a lengthier HTML. Few things- 1. I don't care about the SEO ratings. 2. I do care about the speed of the site. 3. I do care about the functionality of the web site. Basically my question for the core coders- Whats better - <div> Blah blah blah blah </div> or document.getEl...