html

external CSS issue

Okay, time for my dumb question of the day. I have an external css file that basically assign a background image to a button. Css Code: input.keypad { cursor: pointer; display: block; min-width: 64px; width: 64px; height: 64px; margin: 0; border: 0; background: url(images/btn1.jpg) no-repeat center top...

Calling an I Frame

I created an index page with an i frame, calling srs files. The problem is that the src files are listed in Google etc. Clicking from Google on these "src" files does not load the index file, displaying the basic src file. Is there a way to overcome this? ...

Why will <p> come up after set align="left" on <img>

<img ...> <p>..</p> Without setting align="left" on img,p will start from a blank line. <img ... align="left"> <p>..</p> But after setting align="left",p will come up around img,why? ...

Change color of an anchor when clicked

i want that when i click this link its color changes to the given color <li id="press"><a href="<?=base_url()?>index.php/page/press">Press</a></li> ...

How to display HTML in TextView?

Hi, I have simple HTML <h2>Title</h2><br> <p>description here</p> I want to display it in TextView. How to do this??? Any help would be appreciated. ...

jQuery load html - how to get last table returned

I am somewhat new to jQuery but have been having fun trying learn about all the cool tricks it can do. One of the current things I am trying to use is the load function to get a weather report from one the sites we use for daily reporting. The code I am using is $(document).ready(function() { $("#table").load("weather_url table"); }); ...

moving the scrollbar automatically in select html

I have a select box in html and it contains 10 items. Size of select is 4.If I select 5th item and click some button,the page reloads. Here the selected item is retained but the scrollbar is not moving(which is to be the 5th position). ...

how to bulk add in mysql using php

how can I maximize the use of add code in my php, here is my code: create.php mysql_select_db("koro", $con); $sql="INSERT INTO students (IDNUMBER, LNAME, FNAME, MNAME, GRADEYR, ADDRESS) VALUES ('$_POST[INAME]', '$_POST[LName]', '$_POST[FName]', '$_POST[MName]', '$...

Is there a out of the box Javascript "Tweet this" link solution around, which does not eagerly load files from other domains while loading the page, but still features URL shortening?

Requests to third party servers keep slowing my site down, so I am trying to have as few as possible. In my book, the ideal "tweet this" solution should be a small javascript snippet to be hosted on my own site not have any activity while loading the page (at least as few as possible, but no additional HTTP requests) just when clicked...

relative and absolute positioning in IE and FF

I want to have a div that grows when you add more content in it, has at least the height of the viewport and has a header and a footer sticking to the top and bottom. I came up with the following which works fine in IE7 but doesn't work in ff3.5. This is the HTML (add repeated 'Lots of text' for main_body to grow out of the viewport): ...

string output to html formatting problem

Hi, I have the following string variables: string feedImage ="http://im.media.ft.com/m/img/rss/RSS_Default_Image.gif" rssImageStyle = "style=\"background-image:url(\'" + feedImage + "\')\""; I want it to output the following html background-image: url('http://im.media.ft.com/m/img/rss/RSS_Default_Image.gif'); But I get back...

How to change font size in a textbox in html

How can I change the font size of text inside the textbox in html. ...

Set maximum displayed rows count for HTML table

Have JSP page with dynamically generated HTML table with unknown number of rows. Have property on backend, that sets maximum number of rows, e.g: max_rows=15. How to limit number of rows for HTML table to max_rows value? Other part of table should be accessible by vertical scroll,it means that user see 15 rows and if to scroll down, th...

Is it considered bad practice to use non-standard HTML attributes?

I find it very convenient to set arbitary attributes like: <a stackoverflowId="123">...</a> And in JavaScript: var soId = $selectofA.attr('stackoverflowId'); //jQuery Is it a good practice at all? I've never had a problem with this yet. ...

html flash embed

I use the below code within for my JQuery lightbox without include js file AC_RunActiveContent.js or swfobject-1.5.js in the html file. It works fine for IE and Firefox. Just wanna know if there is any problem for not include AC_RunActiveContent.js or swfobject-1.5.js. Is it a must to have AC_RunActiveContent.js or swfobject-1.5.js for ...

Is there a better way to write this jQuery script?

So the script works, but it seems pretty long. I think there may be some shortcuts I could take, maybe use an array? But I'm new at JS, and really new at jQuery. What it does: I have a list of ten questions, and I want to take a graphic (plus sign) and toggle it when clicked to a minus sign. It will also reveal the answer by using a sl...

Images In Javascript

Hi All, I am creating a small application where there are multiple images displayed and when user clicks on any one of the images it gets bigger and replaces the image that is in middle. But I am not getting the clicked image. <HTML> <HEAD> <SCRIPT LANGUAGE="text/javascript"> function swapImage(this.id) { document.write("In SwapImage"...

Table cell being squashed by content in IE8

I have: <table><tr><td></td><td></td><td></td><td></td><td></td></tr></table> The td has a css width attribute setting it to 50px. When content fills the other columns the the cell is squashed below 50px e.g. 32px. How can I enforce the width with css ? ...

Is XHTML 1.1 better then other doctypes ?

This is stated on this page http://www.veiled-chameleon.com/xhtml11.html XHTML 1.1 allows for the easy creation of different display formats, such as a page format for printing, for wireless devices and PDAs, and television based browsers, simply by writing a new CSS (cascading style sheet) for the new document. Update:...

JButton with HTML named action and a mnemonic

Hi all, I have a JButton that is constructed using an Action and this action has a name that is contains html. I then go about setting the mnemonic on the JButton by first parsing out html to get the first character in the name. For example, the JButton name might be "<html>Test<br>Button</html>", so after parsing the html the mnemoni...