html

JQuery trying to insert html of h3 into a DDL dynamically?

Yet another bit i'm stuck on $("div.evenprop .locname").each(function() { $("#ctl00_dd1 option").val(".locid").html($(this).clone()); });​ <select id="ctl00_dd1" name="ctl00$dd1"> <option value="HANW"></option> <option value="HEYD"></option></select> <div style="displaY: none;"> <div class="evenprop"><h3 class="locname">Hanworth<...

HTML rendering algorithm

Hi! I am making an e-book reader for the J2ME and I wonder if I could make it render HTML pages. For the moment, I am using some simplified styling of my own. So, could anyone point me to a good in-depth tutorial or a specification of an open-source HTML engine? Of course, I have some idea about it all, i.e. the main steps involved, the...

Div side by side without float

How can I make div 'left' and 'right' look like columns side by side? I know I can use float:left on them and that will work... but on step 5 and 6 in here http://www.barelyfitz.com/screencast...s/positioning/ the guy says it is possible, I can't get it work though... Code: <style> div.left { background:blue; height:200px; ...

CSS need a fix, very easy

<html> <head> <style type="text/css"> h1{ background-color: red; margin-top : 10px; } div{ background-color:black; height : 100px; } </style> </head> <body> <div> <h1>Hello World!</h1> </div> </body> This is not my wanted result, i want the h1(Helloworld) to marign with the div, not the body This is my wanted result: http://img176.i...

how do you have css padding around a multiline div

i have the following css to put padding around a div: .orangeAllDay, .orangeAllDay a { background: #fab384 !important; color: white; padding: 5px; } it works great until the content (which happens to be inside a cell in an html table takes up two lines. When i look at this in firefox, it looks like its trying to add the p...

Logout through XMLHTTPRequest Object is not working in Opera

I am using the basic authentication mechanism for my website in IIS. To logout the user I am using something similar to this JavaScript function: function logoutUser() { setTimeout('location.reload(true)', 1000); xmlhttp = GetXmlHttpObject(); if (xmlhttp==null) { return; } //alert(xmlhttp); var url = "index.php"; xml...

Can I add javascript dynamically to an existing script element

I want to dynamically add javascript to an existing script element something like: var se = document.createElement('script'); se.setAttribute('type', 'text/javascript'); se.innerHTML = 'alert(1)'; document.getElementsByTagName('head').item(0).appendChild(se); The interesting part is se.innerHTML = 'alert(1)'; and if it is valid? If no...

HTML/CSS: get rid of cursor in opera

building a website for a touch PC and need to know how to make the cursor disappear completely in opera. Any suggestions? ...

Scroll Up/Down To Different Areas on a Page

Hi, Would like to implement the following feature using jQuery scrollTo function or some other similar function that will achieve the same result. I am basically going to have a DIV section on my page that will contains about 10 category URL links. For example: div id="categories"> <a href="A">Section A</a> <a href="B">Section B<...

CSS problem with box shadow and floating box

I have two divs floating next to each other, with class name div1 and div2. I use box-shadow to get a nice shadow on both divs. The problem is that I want the shadow from div1 to lay over div2, to get the feeling that div2 is sticking out from behind div1. Now I get the shadow from div2 to be over div1 instead. Hope you understand my pro...

Reverting jquery animations back to original css states

I've got a page of elements, each of which, depending on user interaction, may be animated away by the given function: function slideAndFade(id){ $(id).animate({opacity: 'toggle', width: 'toggle'}, 500); } I want to create a reset function that brings all the elements back onto the page. Running all the elements through the toggl...

Loop wont add up a running total of form values.

Hi, I am new to Javascript and I am working on an exercise I found online. The problem is that the loop does not pick up the values from the form so the running count never gets updated. Any help is appreciated. Actually one more question, do you have any idea why the values are not getting picked up from the checked input box? The fun...

Writing XML with a simple HTML form

Is there a way to use the value from the form into XML nodes? Once they submit this form I want the values from the form fields to overwrite the existing nodes. <html> <head></head> <body> <form id="myForm" method="POST"> <input type="text" value="new XML node value here" /> <input type="submit" onClick="function();"/> </form> <...

Fire an event through an element with a partially transparent background

Hello there, I got stuck with solving a seemingly easy issue. http://jsfiddle.net/HAKvN/3/ By clicking the black box beneath the white bubble you're triggering an event causing an alert to be shown. The white bubble represents a div with the red border indicating its boundaries. The bubble is a background image saved as a PNG file wi...

do crawlers decode html entities?

i was wondering if the crawlers and robots can decode html entities for example in my html i have something like: salari&eacute;s do they read it like that? or something like: salariés which option is better for SEO? ...

Centering a table in Firefox

I've got a small table on one of my pages and I'd like it centered so have coded which works fine in IE but the table still left aligns in Firefox. if i use text-align:center n align:-moz-center its not working in IE What do I need to change to get the table to center in Firefox?n If i should use -moz-center how to make it work in I...

is jquery replace javascript

can jquery replace javascript ...

How to display an li tag's title using javascript

Hello, I recently found a javascript image gallery, and noticed that it changes the title attribute in the <li> tag. I was wondering how I could make the title information display as text, and update dynamically. As always, any help is appreciated. The code is below. Thanks, Mraisky JS: <!--[if lt IE 8]> <style media="screen,projecti...

HTML table data wrap

Hi, As the default behavior of a html table data is wrap the data right? But my table cell data does not wrap and when i add long text the whole table getting expand. Thanks. ...

Jquery: Move the focus of an <a> tag from a single word to the entire text <div>

Would appreciate any pointers regarding which function to use for this: Say I have something like this: <div class="myTweet">Check out this awesome link <a href="http://bit.ly/uglylookinglink&gt;http://bit.ly/uglylookinglink&lt;/a&gt;&lt;/div&gt; Which reads: Check out my awesome link http://bit.ly/uglylookinglink All I want to do ...