html

Run a JavaScript function from a URL

I need to link to a page that uses javascript to create the appearance of different pages. Each of the links on the page I am pointing to calls a javascript function that produces the "new" page. So, if I just link to the page, I get the default configuration. But what I need to link to is a particular configuration after the js functi...

Javascript autosubmit form

I have a form that I need to submit automatically... (the fields are already filled and its complicated to explain why but it IS necessary to do it this way).. I know how to autosubmit the form using Javascript but the only problem I have is that there is more than 1 submit button.. and I need 1 in particular to be submitted... thanks in...

How to echo out a specific chat room based on what link the user had clicked previously? PHP

Hello, I'm very new to PHP. I am trying to echo out a chat box/chat room designed specifically for a particular room. Say I have a room called Writer's Block where writer's can gather to 'chat' about their situation. A user will click on an HTML link, something like this: `<h2 name="WB" id="WB"><a href="www.yyy.com/group.php?id=2/">Wri...

generate 100 color combination html

Hello guys, i have an html template with 4 basic color Textheader, page basckgroung, navebar color,content backbround. I want to generate different color styles so i can apply it dynamically and get different color scheme i have tried css onine color chemers and the rest, but am looking of a service that will eneble me preview the colo...

I'm looking for a library that converts HTML to Textile in Python

What do you recommend? ...

CSS - center everything within the body tag

I am trying to center everything within the tag on the page without adding another container within it. My situation doesn't allow me to change the markup that is being generated but I am able to edit the CSS. My overall objective is to create css that allows me to use the zoom tag in IE for the print css (to zoom out), but the way it...

HTML title image

I want to have an image on the title in an html page(i.e on the tab along with the title). How to do that? Thankyou for reading. ...

Trouble targeting links in a list with specific styles

I am trying to change the color of links inside <li> elements by setting specific classes on the <li> tag. I set my html up like this: <div id="sidebar_tall"> <ul> <li class="active_item"><a href="#">1. Property Description</a></li> <li><a href="#">2. Landlord Details</a></li> </ul> </div> Here is my css: #sidebar_tall...

Converting HTML string into DOM elements?

Hi, Is there a way to convert HTML like: <div> <a href="#"></a> <span></span> </div> or any other HTML string into DOM element? (So that I could use appendChild()). I know that I can do .innerHTML and .innerText, but that is not what I want -- I literally want to be capable of converting a dynamic HTML string into a DOM element so th...

Customize html type file button

Hey Guys, I want to change the button for upload an image and place an image of another button.. How can I do that, and that it works, on FF, IE, Safari, Chrome I tried it http://www.quirksmode.org/dom/inputfile.html but it doesn't work very well on safari... Thanks.. ...

How do I control the number of lines displayed on a block of HTML-formatted user input?

I have a Rails app that lets users input some HTML-formatted text (P, OL, UL, BLOCKQUOTE). I now want to display a short summary of this text, but want to ensure that I'm only showing <= 4 "lines". I can try to shorten the text by the number of words displayed, but that might still end up in lots of lines if there are one-word LI eleme...

HTML with VBSscript write to table

Hello, I would like to click a button and have a VBScript called to write to a table's lower half eg: -------- |Top |------- |bottom (vbscript writes to here) -------- Is this possible? And how would I accomplish this? ...

jQuery targeting correct radio button is unresponsive

I have a javascript array containing the name and values of radios I want checked. jQuery(window).load(function(){ var selected_options = new Array(); selected_options['swing_type'] = 'Slide'; var x; for (x in selected_options){ jQuery("#menu input[name="+ x +"][value="+ selected_options[x] +"]").attr('checked', 'check...

jQuery Hide/Show with checkbox

Hi guys! I'm working on a form for a client and he has given me the task to create a show/hide effect when certain checkbox in unselected. Please if you know the answer or any work around for this I would be deeply thankful. Thanks. ...

C# wysiwyg editor for a custom language.

Hi, I need to build a visual editor in C#. Given a piece of PHP and/or HTML code, the software will display them in the form of an editable webpage. At the same time it will display a dialog box from where the user should be able to edit options for the selected component. It is pretty like Adobe Dreamweaver's HTML editor but it needs t...

Add Bitmap to HTML

I have an ASP.NET web form. This web form has an event handler that generates some HTML. This HTML is based on the time-of-day, that is why it is created in the event handler. Based on the time of day, an image is created programmatically via the following method: private Bitmap GetImageForTime(DateTime time) { Bitmap bitmap = new Bit...

Inline styles for one-offs?

Do you guys ever use inline styles for one-offs? For example, I wanted to make just one particular list on my site use letters: <ol style="list-style-type:lower-alpha"> Is that really so bad? Or would you slap on an ID and then bury it in your big master CSS file where it will be a pain to ever find again? ...

How to automaticaly fill form fields

This may be a really stupid and easy question, so I apolgoize in advance. How can you make a form be able to fill a field with the url? Example: if i have two fields, username and password, and my form is located at form.html how can I make form.html?username=example automatically fill in "example" in the username field. Thanks. ...

fit container height to layered content (to visible layer)

I have a div, the container and few other divs inside - the layers. Visibility of layers is switched dynamically with JavaScript. I want the container to fit its height to visible layer when switching between them, but also when we are zooming the page in or out. Generally I want to create a page that instantly loads all of its contents...

PHP yes or no form

What is the code for a PHP form that matches a user input to a correct response and if it is not equal, it returns an error and if it is it shows a successful message. Example: If the proper string to insert is 1234 and the user enters 3948, it should return an error, but if the user enters 1234 it should go to a new page. ...