html

How can I convert input to HTML Characters correctly

Let's say I'm including a file which contains html. The html have characters as exclamation symbols, Spanish accents (á, ó). The parsed included text gets processed as symbols instead of their correct value. This happens on FF but not on IE (8). I have tried the following functions: htmlspecialchars, htmlentities, utf8_encode include ...

[PHP] missing keys in $_POST

Hello there, I am trying to get some form data from POST method. Here's the code of form - <form action="" method="post" name="form1" id="form1"> <input type="hidden" value="15" name="ad_id"> <table width="100%" cellspacing="0" cellpadding="0" border="0" class="block"> <tbody><tr> <td valign="top">&nbsp;</td> <...

Changing a link-style, only for a certain class

I want to change the link-style for some of my links, like this: a:hover { /* These links will be blue when hovered-over */ background-color: #3366FF; } However, I only want this to take effect in my Navigation Bar, and not for regular links. I have tried variations on this: #navbar a:hover { /* These links will be blue ...

What is the lightest way to make a huge chess-like grid?

Hey there I'm working on a browser-game and I can't help but wonder about what's the lightest way to make the grid/board on which the game takes place. Right now, as a mere sample, I'll show you this: -link no longer active, it was basically a 25x25 table+tr+td grid- Now, as the grid gets bigger and bigger, the table and its td's cre...

html css header text

I am trying to move the nav text (home...) up in the middle to the right. But when I do -120px for the top (nav.li), it eats up part of the banner. How can I fix that? Thanks body { background-color: #D6E2FF; } #headerimg { margin: 10px 0px 0px 0px; height: fixed; width: 95%; } #header { height:auto; background:url("menubar.jp...

Which column type should I use for storing HTML of an unknown size?

What column type should I use for storing html content from a website with an unknown size? (I'm scanning certain html pages, and create an database entry if there are changes between the last stored entry and the current html code.) My database is a MSSQL 2008 express database. ...

horizontal scrolling only!

Hi all i have a that contains a HORIZONTAL menu. the menu consists of an unordered list. i would like the div to get a horizontal scroller whenever the menu exceeds the width of the <div>. i tried using these CSS definitions for my <div>: position: absolute; width: 380px; overflow: auto; overflow-y: hidden; height: 30px; but than ...

Printing contents of a div

The contents of the following div is derived dynamically: i.e a table is added dynamically to this div with some button. My question is how to print the content of this div(window.print) and not other things in the page <div id="newdiv" name="newdiv"></div> Thanks. ...

Table data display in HTML

In the following table: how to adjust the height and width automatically for the table. i.e, if the data is more it should display all the data else present data in a fashionable manner <table id="mytable"> <tr> <td>more data.............................................................................</td> <td>a</td> </tr>...

SHTML - Testing

I am creating an shtml website and I am wondering how can you test the webiste in dreamweaver. Do you simply change the extentions back to html? ...

&nbsp; doesn't show in IE

&nbsp; shows some symbol istead of space in IE? could you tell me why? thanks ...

How do I change an attribute in an HTML table's cell if I know the row and column index of the cell?

I know nothing about jQuery but am an experienced C++ programmer (not sure if that helps or hurts). I found jQuery code that gives me the row and column index of a cell in an HTML table when a user clicks on that cell. Using such row-column index numbers, I need to change an attribute's value in the previously selected cell and in the ce...

Need help with Javascript....I think

I'm trying to bypass going through a bunch of menus, to get to the data I want directly. Here are the links I want to go to: http://factfinder.census.gov/servlet/MapItDrawServlet?geo_id=14000US53053072904&amp;tree_id=4001&amp;context=dt&amp;_lang=en&amp;_ts=288363511701 factfinder.census.gov/servlet/MapItDrawServlet?geo_id=14000US530...

Stop applet execution on load, pause/resume using javascript?

I'm making something of a java applet gallery for my website (processing applets, if you're interested) and I'd like to keep the applets from running when the site first loads. Then, when the appropriate button is clicked, a piece of javascript would tell the applet to continue execution until another button is pressed to stop it. I know...

calligraphy fonts on a website

if i want to have some text show up in a calligraphy font, how do i know how it will render of the users computer. How do i know what fonts that person has on the computer or does it matter? any good examples of doing this in css? would i be better off putting something together in photoshop and saving as an image? ...

How to load one div into another.

Hi, I have a page with 10 different div contents in it. Based on my button click i want the 11th div to load content or just take a copy of div 1 to 10. I mean like on button1 it should load div 1 and on button 2 i will load div 2 etc. All my div 1 to 10 will be hidden and the 11th div alone will be visible. I need this because of my b...

Unobtrusive horizontal scrolling with CSS and jQuery

One of my most favorite websites is that of the Oxford Hotel in Romania. I like the simplicity of the site and how it flows. I am trying to create a similar scrolling effect using jquery and I've been somewhat successful to a point. My trouble is with css... I am not a wizard in that department. Anyway,...my questions! 1. How can I fi...

Removing page title and date when printing web page (with CSS?)

By default, when you print a web page, the page title and and URL are printed at the top of the page, and likewise the date and time are printed at the bottom. It is possible to remove this additional as you are printing through the PAGE SETUP menu (under FILE in Internet Exp) Does anyone know of a way of doing this via CSS or javascr...

Setting on server to download a file instead of displaying it

Hi, My server for some reason displays .AIR file inside the browser, but I want to have it downloaded. How can I do this? ...

What are the pros and cons using javascript in our form?

I got this code in my submit form <form id="myform" action='hello.php' method='GET'> <input type="button" name="newWin" onclick="frmSubmitSameWindows();"> <input type="button" name="SameWin" onclick="frmSubmitNewWindows();"> <form> Then use some js functions in the head; function frmSubmitSameWindows() { form.target = ''; f...