html

Pre-rendering html page into image

I want to pre-cache next web page into a thumbnail. Is it possible to pre-render a html page (with css) into an image on-the-fly with javascript/jQuery? And how to persist that temporary image on the client? ...

how to use auto with a height in css

How would you use auto height? I need the hight to be 250px default the auto is working but i cant get a default hight. ...

Jquery Menu remembering the state of the menu.

Hello, I am trying to get my menu system to read a cookie to it can remember the menu state. once remembered the menu would stayopen/close depending on the cookie. using alert in the javascript ive been able to read the cookie before and after clicks but sadly I cannot get the if statement correct in order to keep open/close the hidden...

how do i print the string dynamically using implode and explode from the database?

hi there, i am using implode to store my image paths. with the special symbol '~' . and hence in my database i store a single string which holds the path and filename of the multiple pictures and then i retrieve it. the string which is stored in the database is similar to this. uploads/adv/adfront_07October2010_13531.jpg~ uploads/adv/a...

How to used node_load()?

Hi m a bit confused that how to retrieve node title by using this code node_load($nid); $title=$nid->title; i have done this coding in block and i wants to retrieve from node id for displaying image.that images are normally uploaded at the site by using filezilla and it has same name as the node title.i have tried many forms of node_lo...

Is there any ie9 css-hacks? Already needed.

Is there any ie9 css hacks? I tryed to find them. But i didnt find any. ...

Imagemap Rollover and Tooltip

<img src="http://www.w3schools.com/TAGS/planets.gif" width="145" height="126" alt="Planets" usemap="#planetmap" /> <map name="planetmap"> <area shape="rect" coords="0,0,82,126" href="sun.htm" alt="Sun" /> <area shape="circle" coords="90,58,3" href="mercur.htm" alt="Mercury" /> <area shape="circle" coords="124,58,8" href="venus.htm...

Disable word wrapping in the end

I have a block with some text and image inside. Like: <div>I just posted a new photo from my iPhone <img></div> Image in the end has dimensions of 16x16. The problem is, text varies and sometimes >just image< goes to a new line. It should always go with some word, image must not travel alone. How do I do it? ...

html tags in mysql value fields, is that right ?

i was looking at status.net source code and mysql tables, and they seem to have html tags in thier mysql field values, i was just wondering is that right thing to do or is it going to cause some problems in the future? ...

Question on Django: Displaying many to many fields

I seem to have a problem with Django when it comes Rendering ManyToManyField in a template. I can make it work partially, but I cannot make it work properly as I want it. Firstly I have an invoice template which displays Invoice details from my data base #invoice_details.html {% extends "base.html" %} {% block content %} <h2>Invoice D...

How does google add the light blue colored vertical and horizontal bars (html/Css)

As shown in this screenshot: http://imgur.com/fgyjr.png I tried looking in the source code , but couldn't find it myself. ...

Form on PHP page with multiple submits changes CSS of page

I've created a PHP web form which when all the data is present has 2 submit buttons (Continue and Print). Continue calculates details based on the entered information and displays it on the page. Print performs the same calculations, but then creates a PDF in a new window. When I click Print the original page still loads (which is fine)...

How to display the contents of an arraylist in a drop down box

I have a sql statement that pulls infomration about tagnum's for individual pidm's. Every pidm can have multiple tagnum's so I am dropping the information into an arraylist. I want to display the contents of this arraylist in a dropdown box on a html page. Here is the code for the arraylist: <table style="border:transparent" st...

Are there any good Silverlight/HTML file-upload with metadata libraries ?

I need to creating a solution in SharePoint 2010 to upload multiple documents and tag them with metadata. Does anyone know of an interesting/compelling file-upload control or solution that supports adding metadata to the files? The solution could be in Silverlight or HTML/Javascript. I've looked at the Silverlight Multi file uploade...

Underlining the text in an submit button (html, css)

Hello All, I'm (probably unwisely) attempting to style an input submit button to make it look like a regular hyperlink. Using css everything is fine, except for the underlining, which is not being rendered. Css: input.addemail { border: 0px; background-color: #1e2f45; text-decoration: underline; cursor: hand; cursor: poin...

How to use jQuery to select this parent?

I have a recursive menu where I need the children items to effect the parent. In my example below, how do I add a "selected" class if any of the children have a "selected" class? <ul> <li class="administration first"> <a href="/administration.aspx"><span>Administration</span></a> <ul> <li class="users fir...

Prompting for download

Whats the best method to prompt a user to download something? In the past I've used window.open('file.pdf'); but I can see popup blockers having a problem with this. Of course I'll include a manual link aswel. I basically want something like the Microsoft Download page. So whats the script that prompts this? ...

How to code anchor tags as block element to contain other block elements

I am experiencing the same problem described in this thread. I'm wondering if there are other ways to achieve the same result and avoid this issue. Apparently Firefox has issues with anchor tags containing block elements even when the display CSS property of the anchor tag is set to "block". The effect that I am trying to achieve is to ...

How to select only top-level li in recursive menu?

How do I select only first-level li's? If I do 'ul li', it also selects the children. Is there a way to select only the top level and not the children using CSS? If not, I am ok with using jQuery, but how would I select it in that case too? <ul> <li class="administration first"> <a href="/administration.aspx"><span>Administr...

How do I handle the hover in this recursive menu using jQuery?

In my menu below, I have this in my CSS: ul li ul {display:none;} When a menu item is selected, I use this jQuery to show the children menu: $('ul li.selected ul').show(); So I confused on how to handle hovers for the top level menu. When I hover over a top level menu item, how do I hide all sub-menus and show only the hovered item...