In many browsers today you can click and drag images. Can I leverage this in any way? Could I receive an event when an image is dragged and dropped on top of another image in the same browser window?
...
Is there any way to know the IDs and Names of all the objects on a page? Any tool?
...
I've tried to set the margin and border to 0,but still not working.
<style type="text/css">
img {margin:0;}
</style>
<body>
<img src="/static/btnNext.gif" border="0" />
<img src="/static/btnSave.gif" border="0" />
How to make two images stay close to each other?
...
These days, in any site where they show a code fragments (even in Stackoverflow), the code is nicely wrapped around a GUI element which highlights syntax elements, provides line numbers, etc. I want to show some ruby on rails code in my blog and I want those visual elements in my blog.
How can I accomplish this on my blogger blog?
...
Hello all
IN a nutshell I'm having issues with long strings of text stretching out my tables and overflow:hidden does not seem to be doing what I exect. Here's the sample code I am using to test this effect.
<html>
<head>
<style type="text/css">
td.scroll
{
background-color:#00FFFF;
width:100px;
height:100px;
overflow:scroll;
}
td...
I need some help making this script... so far I think it should look something like this (I tend to use AWK a lot)
#!/usr/bin/perl -w
@filelist=(
file1,
file2,
file3
)
print ("<html>");
foreach $filelist {
print ("<table>";
print ("<td>"$filelist"</td>")
foreach [line in the file]
print ("<td>"$1, $2"</td>");
}
print ("</...
I have a long UL list I need to break up in smaller lists containing about 20 items each.
I was thinking I could use something like
$(function() {
$("ul li:nth-child(20n)").after("</ul><ul>");
});
but that's not the case. Any idea how to use jQuery in a way that uses minimal CPU?
Thanks
...
I have a very simple requirement, make a link look disabled. Why is it this hard??
.disabled {
-moz-opacity:.50; -ms-filter:"alpha(opacity=50)"; filter:alpha(opacity=50); opacity:.50;
}
Is my style. I have applied it to an li...but in IE7 it just does nothing. FF and IE8 it seems to work in, but IE7 is just rubbish
Any clues...
I use FrontPage for two different tasks; authoring html help and authoring a couple of websites. The websites don't require a lot of stuff -- they are there to disseminate a bit of information to a couple of small audiences.
FrontPage has been quick and easy for these tasks. WYSIWYG is good for these jobs and I like being able to click ...
So this is what I have:
<script src="scripts/jquery-1.3.2.js" type="text/javascript"></script>
<script>
$().ready(function() {
var allVals = [];
$("input[name^=utType]").each(function() {
var input = $(this);
var name = input.attr('name');
var num = /\d+$/.exec(name)[0];
if ($(this).chec...
How do you embed Autodesk 2010 dwf/dwg files in a web page?
I found some old code that worked with the Volo View Express 2 activex control in IE, but it won't display newer drawings.
<iframe height="500px" width="100%" scrolling="auto" src="drawing.dwg"></iframe>
Is there a new/better activex control available?
...
How could I reuse some html and/or DIV tags across different web pages instead of copying over and over inside all the different pages.
I intend to use only html and css at this point. These pages have file extension of .html
I do not want to use any JavaScript or server side or any programming language in my web pages at this point. ...
All,
Here's what I'm trying to accomplish.
I have a Flash SWF that's embedded in a DIV. Depending on the user's interactions with that SWF, I'd like to dynamically adjust the height of the SWF.
The SWF itself is 1200 pixels tall. By default, the DIV is 690 pixels tall, so the lower part of the SWF is clipped (which is the behavior I w...
I need some HTML/CSS guidance. My goal is to create a contacts list screen in my app, and like most contacts list screens, users should be able to pick a letter the name starts with, and the app will filter to that letter. Easy enough.
How I'd like the UI to look is something like this:
Find by Name | all # a b c d e f g h i j k l m ...
I am fooling around with Authorize.net and I have a problem I'm hoping someone could help me out with.
Basically I have a page which I have a form on that has all the pertinent information to send to Authorize.net for a purchase. All a user has to do is click a button on the page and it POSTS all the info to get them to Authnet's hoste...
I'm new to HTML, but have a long history with XML. It strikes me as odd that an HTML style element looks like this.
<style type="text/css">
.style1 { width: 250px; }
.style2 { width: 20px; }
</style>
I would have thought the same information could have been captured in a more XML friendly format. For example maybe this
<sty...
I have a complex input form within a PHP based web application. To structure it a bit, I introduced "Multifaceted lightbox" to let parts of the form - named inline DIVs with "display" set to "none" - appear within a "lightbox" style dialog box. It works great, until just now I realized that when it displays a DIV, it copies it into its c...
EDIT: What I mean is displaying the XML data through HTML, not trying to get HTML into XML.
Is there a simple way to load content from XML into HTML? To give you an idea, here is my DTD for the XML files:
<!DOCTYPE bookreport [
<!ELEMENT page (title,author,image?,section+)>
<!ELEMENT title (#PCDATA)>
<!ELEMENT author ...
I'm building a bit of a test-case JS application, something very basic, but have run into some problems.
I'm trying to use a HTML form for a user to enter a number, which is then written to a Javascript Array. The user then has the option to write that same array to a local (client side) cookie. (I understand the security implications ...
What's the best way to insert an element into a page's HEAD directly before the closing tag using JavaScript?
...<HEAD>
<script>...</script>
<script>...</script>
<script>...</script>
<link .../>
<link .../>
<link title="MY NEW LINK ELEMENT" />
</HEAD>...
I know about the ol' insertBefore(sp1, sp2.nextSibling) trick, but that just let...