I have a simple page with two elements:
<html>
<body>
<input type="text" style="height: 18px; width: 120px" /><br/>
<select style="height: 18px; width: 120px">
<option>test</option>
</select>
</body>
</html>
In an attempt to make it w3c compliant and to display consistently across browsers, I've added a DOCTYPE e...
How would I go about taking a picture from a video capture card or webcam? Should I use flash to do this? I want to submit the picture via a php form and upload it to my webserver and place a link to it in my MySQL database. Is there a flash app already built that I can use to perform this?
...
Hi,
Hoping someone can assist with a means of implementing a "Search" routine/page that I can apply to my site that is purely a HTML website only.
I have provided a Search box for the user but unsure what the next step is, i.e. can I insert php to perform the Search of my site.
Would really appreciate any help/tutorials/links that dem...
Hi,
Hoping someone can assist with a means of implementing a "Contact Us" routine/page that I can apply to my site that is purely a HTML website only.
I am assuming this will need to be a php process to send emails from a Contact Us form but unsure how to do.
Would really appreciate any help/tutorials/links that demonstrate this.
Tha...
Ive noticed when looking at the source of a page generated in ASP.NET, the actual markup is very messy - sort of a half-assed tabbed affair with bundles of whitespace thrown in (see pic).
Can anyone suggest a technique to remove/strip this whitespace?
...
<ul>
<li> test </li>
</ul>
by default when view on firefox, the test is shifted to the right hand side? how to made it align to the left ?
...
I have written a php script that generates a list of links that match certain criteria.
I want the links to open in a new browser windows with selected words highlighted in the page.
Is there an easy way to do this? Note that this is for personal use only, so it can be a browser specific solution.
...
Hi Guys,
I have the following HTML
<div id="top-right">
<span id="top-right-name">sometexthere</span> | <a href="#">link</a>
</div>
And the following prototype JS
Event.observe(window, 'load', function() {
try {
if ($$('#top-right')!=null) {
var topmenu = document.getElementById('top-right');
var value = topmenu.innerHTML;
// d...
Refer to previous: http://stackoverflow.com/questions/2365994/display-a-warning-when-leaving-the-site-not-just-the-page/3442524#3442524
I'm needing something very similar, however, instead of relying on any rel, id, or onClick designations in the html's anchor tag, I need a way for the javascript to popup a warning if it's determined th...
I'm designing a meta data area for a blog, and am having some trouble formatting it correctly.
I've got 3 definition lists contained in a Div. The Div will not honor the padding I place on the DL items. I've linked to a picture to demonstrate. The first image shows what looks to be proper formatting. This is because the padding of the D...
I'm working on a project where a SWF will play (as sort of a splash), followed by JS. After the video plays, the navigation and content will appear, and the video will fade out. I'm just wondering what would be the best way to accomplish this? Play the video first and then load everything via ajax behind the scenes? The goal is to be as ...
I'm creating a website with a database search functionality, but I want to make the user login or create a account first to use the search functionality. How do I do this? And what is the easiest way to carry the login session forward. I.E. the user only has to login once to do many searches.
...
I am dynamically generating a web page containing an ordered list. The page contains 10 items and uses the attribute 'start' to number the items accordingly. A generic ordered list with 'list-style-position: outside' works perfectly fine for items with an item number less than 1000.
The problem arises when item numbers are 4 or more...
I have a "Saving..." overlay that occupies the center of an invisible div that covers 100% of the screen. I would like it to be impossible to interact with the elements behind it, i.e. clicking the buttons, selecting form inputs, etc. Ideally it would not only catch all mouse inputs, but also ignore the mouseover effects(namely cursor ch...
Hi
I'm having trouble setting something to float right in JS. My code is as follows:
var closebutton = document.createElement('div');
closebutton.style.styleFloat = "right";
alert(closebutton.style.styleFloat);
closebutton.style.background = "#f00";
closebutton.innerHTML = '<a href="">✖</a>';
titlebar.appendChild(closebutton);
...
i am trying to dynamically set the disabled attribute on the html textbox and having issues
i tried this in my view:
string disabledString = "";
if (SomeLogic)
{
disabledString = "disabled";
}
Html.Textbox()...new Dictionary<string, object> { { "maxlength", 50 }, { "disabled", readOnlyState } })%>
so as you can see i am s...
Hello. I have a 1024px nav bar that has five categories that are links (ul's) A few of them have drop downs. I have them set up perfectly to align horizontally. The one to the far left when hovered, drops down the text perfectly to left edge underneath the nav bar, as intended. As you move down to the right, the text(the hovered text) on...
I am trying to have my footer (just a div with a line of text in it) be at the bottom of the screen if the content doesn't go all the way to the bottom, or be at the bottom of the content if the content requires scroll bars. If the content doesn't require scroll bars, it works perfectly, but when the content is too long, the footer is s...
Like many developers I put my images in /images, css in /css, and js in /js. This way, no matter what the URL/directory structure, the site can simply reference /css/style.css or /js/jquery.
Problem is when I try opening the html from a directory, the paths are screwed up. It assumes / is C:/
I'd like to be able to preview html files...
Hey.
I'm using jQuery to make a fixed drop down sub-navigation at the top of the page when you mouse over the fixed nav.
I do this by changing an element that was previously relatively positioned to fixed positioning. However this produces an undesirable 10px margin in IE7 and Safari.
At first I thought it was the margin produced by t...