html

Colorize Unique Elements in XML using XSLT

I currently have an XML document which basically consists of several conversations between people just like an IM conversation. I have each conversation displaying how I want to so far, except I want each name to be a unique color for readability. How I have it is that the XML is transformed into HTML with CSS. I'd like to use XPath a...

jquery: remove table row while iterating through table rows

#exceptions is a html table. I try to run the code below, but it doesn't remove the table row. $('#exceptions').find('tr').each(function(){ var flag=false; var val = 'excalibur'; $(this).find('td').each(function(){ if($(this).text().toLowerCase() == val) flag = true; }); if(flag) $(this)...

Is it possible to change iframe src using javascript exists in page inside that iframe?

I want to change the iframe source when something change in this iframe content, the iframe is in a different domian than the parent page. is this can be done or not? I just need to add a hash to this iframe src, so that i can access this hash value from the parent page and do some stuff based on this value. What i did: In the iframe p...

automate finding all images used by webpage

When I load a page with Firebug I can see a list of all the images required by the site. How can I automate finding a list of the image URLs used by a webpage, including those referenced in external CSS? ...

How to force a line break after each image in Safari Reader?

I was unable to activate Safari Reader in a local HTML file, so I cannot give you a running example but only describe my problem: The markup of my blog posts is basically this: <div class="post"> <div class="post-header">Hello, World</div> <div class="post-body"> <p>Look at this picture:</p> <p><img src="http://37prime.com/news/w...

Z-index problem

I have a z-index problem here: http://ratingscorner.com/product_rating.php?alias=Peoples-Education-Society-Institute-of-Technology-%28PESIT%29-100-feet-Ring-Road-Bangalore&amp;product=Colleges The first level menus go behind the content area. I tried to give the header a higher z-index and it helped, but in IE the slideshow still doesn'...

Javascript style assignment only works in Opera (but not in Firefox or IE8)

The following javascript code works perfectly in Opera(v10.5x), but fails miserably in Firefox(v3.6) and IE8. function HighlightBox(elementid,highlight) { var hstyle="none"; if (highlight) { switch (elementid) { case 'emailbox': case 'lastnamebox': ...

How to Embed thumbnails in images

I have a bunch of 200X120 thumbnails and a bunch of high quality images, Apparently when I just resize the thumbnails with img size the quality suffers, so we are loading two images from the server the image thumbnail and the actual, I am just trying to optimize my site for speed a little saw someone mention embedding thumbs in the image...

HTML: what are the percentages of the heading tags?

Hi, I have just normalized the font size with this: html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, labe...

How do I include the proper XML / HTML definitions in a file generated by XSL?

As I understand it, you need to include the following code at the top of your HTML files to make sure they're parsed properly: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> ....

How do I divide the remaining horizontal space between two columns in an HTML table?

I have an html table with say 5 columns. Three of the columns I want to have a fixed width (for example, td width=30,50,30). How would I divide the remaining horizontal space between the two remaining columns? I thought I would do it by just setting each of the "width" properties for those columns to "50%", but that didn't seem to wor...

Rails: How to name and create unique divs within a loop?

I have a view with a div that is looped many times. Each of the created divs need to have a unique ID so I can access them specifically (at the moment, all my divs have the same ID specified in html so whenever I try to access a specific div it just finds the first one). This is the version that I currently have (multiple 'rowBox'es are...

Convert HTML Forms to ASP.NET forms with a silent post and response handler

I want to write a DotNetNuke module that can take an HTML form and parse or transform it into an asp.net form that would then do a HTTPPost to the page specified in the HTML Form's action property. We regularly run into the need to use pre-existing forms (from existing sites and Service Providers like Paypal and Constant Contact). Curr...

swf to image on the website??

hi, i want to convert a swf to image on my website. a user makes some changes on the stage and if he press a button "get image link", the swf stage will be converted to an image and its image link will appear within a box. like imageshack.. so user can use it in forums as image. how can i do this? i even dont know it is about flash or ht...

Dropdown menu (SELECT element) not losing focus correctly in IE6

Example (load in IE6): http://jsbin.com/uheco/14 In IE6, if the user clicks on a SELECT and does not click any OPTION but instead clicks somewhere else on the page outside the SELECT, the SELECT still has focus. I expected the SELECT to lose focus when I clicked once outside of it (such as in IEs 7 & 8). Functions bound to the blur ...

Building CSS3 Simulated Lightsource on Background

Is there a way to take a DIV that has a background image on it, then apply a CSS3 gradient on it to simulate a lightsource? The reason I ask was because I was thinking of making the BODY tag on a page use a repeating background pattern, apply the CSS3 gradient lightsource on it, and then stick a white DIV on top of that where all the pa...

Simply trying to submit a simple form inside form, weird behavior

I have a ad banner that has a form and this is used by 3rd party site owners that grab this code and have this banner on there site. Since some sites that use this banner have a <form> wrapping there entire site i have found that the banners form doesn't submit it rather submits the outer form. Here is the code: <form onSubmit="retu...

seeking help with Chrome & Safari not rendering my table stretched to fit its contents...help?

I have an element on this web page I'm developing where I need my text to conform to the width of an image above it - whose width will always be different - think of captions. I have found numerous references to using a 1px table to force this width sizing behaviour. I am having problems, though with Safari and Chrome "seeing" this instr...

Implementing prompts in text-input

Hi, I have a form with some text-inputs: login, password. If user sees this form the first time, input-texts should "contain" prompts, like "enter login", "enter password". If user clicks text-input, it's prompt should disappear to allow typing. I have seen various examples, that uses background image with prerendered text on it. Tho...

Body background switcher with jQuery

Hi there, I'm making a webpage that needs to switch between background images on a page, where the user can click on back and forth arrows to sift through each background while browsing. For each background there needs to be a dynamic description for each image. For example, the user may load the page and see the body background with a...