html

What's the right way to define the style of the images inside my gallery div?

I have a div with an id of 'gallery' and I want to style the images inside it. Specifically, I want to give each of the images a 1px solid yellow border except on the bottom because they sit on top of each other, so I don't want to double the border on the bottom. What I'm confused about is how to choose between the different border sty...

Any way to make small web pages show up full size on iPhone?

I'm currently working on an intracompany web site which will be viewed on cell phones - at the moment, Palm Treos and iPhones. The Treo has a screen 360x360 so I'm putting all the page info into a 360x360 box. Works fine on the Treo, but when you log in to the site on an iphone, it shows up about 1/2in square on the screen. Is there a...

Alternative to "overflow:scroll;" to create a permanent vertical scrollbar in a div?

I have a div in which I need a permanent vertical scrollbar. Sometimes the scrollbar will be needed because the div will contain excess content and other times it will not be needed but I want the appearance to be consistent - even when there is not excess content in the div I want it to contain a scrollbar. I tried this but it doesn't a...

What is <span></span>tag?

What is the theoretical explanation of <span></span> tag? And where we use? What is the use of this tag? ...

How to trigger this event?

I have a table with 3 x 3 cells. Each cell contains a button, in 1-9 when click on any button, the value will be appended to an input textbox. I tried to trigger the onmouseout event in the table but not work. and I also tried to add a div outside the table, and capture the onmouseout event. How to use javascript to trigger that weathe...

How to do page redirect in HTML Application (.hta)?

I have tried to put <a href="page2.hta">Go Page 2</a> inside a .hta file. However, it opens a browser when I click on the link. Is it possible to make it open page2.hta within the same window? ...

How to access Firefox's DOM (or HTML content) from outside firefox.

Hi guys! I have a question: My program will search FireFox windows opened by user. When a user open Firefox and enter any site, I want to search for a keyword in that page's HTML content. How can I access Firefox's Active Tab's DOM (or HTML content) from outside firefox using my C++ program. Is it possible? If so, can you give me som...

How to update rows in jQuery with PHP and HTML

Hi All My PHP script generates a table with rows which can optionaly be edited or deleted. There is also a possibilety to create a new Row. I am having a hard time to figure out how to update the HTML rows which are generated through PHP and inserted via jQuery. After the update it must be still editable. The HTML is generated into a d...

How can I send raw data to a printer in Mozilla Firefox? (Raw Print)

Hi! I have a PHP+MySQL web application to sell ticket in my officess. I have dotmatrix printer (Panasonic KX-P1050) to print Tickets and bills. My Ticket size is: 15cm X 25cm. I want to send some text directly to Dot Matrix printer like Panasonic KXP-1050 without using true type fonts and windows' print dialog. As I know, this means:...

jquery , images, selector

Hello, a I have some images on page and I want to put <span> tag bellow each images, with 'alt' text , with jQuery I began with : HTML <div class='container'> <img src='images/1.jpg' alt='text1' /> <img src='images/2.jpg' alt='text2' /> <img src='images/3.jpg' alt='text3' /> </div> jQuery $(".container img").after("<s...

are there master templates in html?

I have to build a html website, which will contain about 50+ pages. The whole website will have a common look and feel. I wanted to know if there is a provision of master templates in building html websites, so that like in asp.net i can make a master page and then build html pages deriving from the master page. That way if i have to add...

Creating the looks and feel of a Windows form.

I'm working on an ASP.NET and someone asked me how much time it would cost to make the site.master appear like a Windows form. Basically, it should have a caption, an icon on the left, a minimize/maximize/close button on the right and preferably these should function similar to a real form. Also, it needs to have borders which can behave...

iframe source physical file or object

Hi I want to pass an object as iframe src. Is it possible? like this StreamReader reader = new StreamReader(data); string s = reader.ReadToEnd(); myiframe.Attributes.Add("src", s); Thank you, Nagu ...

Removing whitespace between HTML elements when using line breaks

I have a page with a row of about 10 imgs. For readability of the HTML, I want to put a linebreak in between each img tag, but doing so renders whitespace between the images, which I do not want. Is there anything I can do other than break in the middle of the tags rather than between them? Edit: Here is a screenshot of what I have so f...

html entity decode fail with the new lines in textareas

hi when I get a text from a textarea in html like this &#119;&#97;&#115;&#101;& ;#101;&#109; the correct decode is waseem notice the newline , when I decode it I get wase&;#101;m the newline make errors here , Can I fix it ? I use javascript in the decoding process . I use this function in decoding function html_entity_decode(...

hr with an image thru css

Hi, I find this a pain. I am trying to get CSS to use an image when the < hr /> tag is used. I am currently using: hr { display:block; border:none; height:10px; background-image:url('img/ruler.gif'); } However, I always get a border around the image. As you can see, the border:none does nothing. I know there are alte...

Escape double quotes of HTML attributes output by PHP

Often when writing PHP I'll have it output some HTML like this - echo "<a href="../" title="link title">".$link_text."</a>"; Obviously this won't parse as I need to escape the double quotes in the attributes of the <a> element. Is there a regex that would quickly do this rather than me manually adding the backslashes? One other thing...

Is there some functionality in/for Delphi that converts a string with html named and numbered entities to unicode text?

I read data from a mysql database that has is filled by php scripts. All special characters are converted to named or numbered html entities (for example & a m p ; & # 2 8 6 ;). I know of no way to convert these characters back to the original ones in Delphi as unicode strings. Did anyone ever find or even create such a function? This wo...

Calling ActionScript code from HTML JavaScript and obtaining return value?

I need to obtain the text from the system clipboard in HTML JavaScript, in a way that it works on all browsers. Some form of clipboard.swf is sometimes used on many sites to copy text into the system clipboard. How can I do the reverse, i.e. obtain the system clipboard's text in JavaScript via ActionScript code in a 1x1 swf file that I ...

netbeans - preview html within IDE , split view??

Hi there, I have installed the latest version of netbeans and its working.. I have opened an html file but i don't see where i can preview it.. Does it support HTML preview inside the IDE? Do i need a plugin? I would like to view in design mode at least so i can design in the ide ... All i see is pure html ... any ideas? thanks ...