Sorry if that question is confusing, I'm self-learning javascript. I'm dynamically generating image thumbnails and I want to be able to enlarge the image when the user clicks on the thumbnails. My code to create the image tag and assign the onclick function looks like...
var imageTag = "<img onclick=\"enlargeImage()\" class=\"thumb\" s...
Hi,
I am new to css and not a programmer. I understand what a class is and I understand what a div is, but what I can't seem to find, is how to set styles per div.
Any help appreciated,
Joost Verplancke
...
Imagine a website with an element
The site wants to run some JS which will fill the div with random text, when the div is full it should clear and start over. Yes I know that sounds weird but the question is, how can the JS know when the div is full, and would start to overflow?
By 'full', I mean no more visible text can be put in the ...
I have a web page that pulls in several javascript files in the HEAD section. The path to one of those files is generated dynamically, and I'm seeing an issue with some paths that include the # character. For example, the following path does not resolve correctly, and therefore the .js file does not load (even though I've verified that...
All my aspx files give all kinds of annoying warnings like "The CSS Value is not defined" because I'm referencing CSS files from other projects relative to where they will be published in IIS. And other things I ignore like "Zoom is not a valid css property" even though I need it to fix crappy IE 6 rendering bugs.
I tried adding Warnin...
How can I get Arial, helvetica and sans-serif working for CSS styled dynamic HTML Textfields in a Flash 9 swf on MacOSX?
I'm generating a number of Textfields problematically and I use CSS to style their
content. It works just fine when the swf's are viewed in a browser on Windows,
but neither in Safari nor Mozilla on MacOSX.
I've tri...
Is there anyway to delete portions of existing content on a page with a javascript function? Like this:
<I WANT THIS CLEARED>
<IS THERE ANY JAVASCRIPT OR HTML STATEMENT I CAN PUT HERE>
<I WANT THIS DISPLAYED>
What should I put in <IS THERE ANY JAVASCRIPT OR HTML STATEMENT I CAN PUT HERE>? I know putting <div style="display:none"><plai...
Hi, I'm trying to see if it is possible to put some text over an image without using position: absolute or having the image being, the background of an element.
The reason for the constraints is that the HTML code is going into an e-mail, and it turns out that hotmail supports neither.
I remember that when I first began studying CSS, fid...
I am implementing a game using Javascript, jquery, and the Canvas tag. How can I prevent the browser from processing keyboard shortcuts when the canvas tag has the focus? I have tried event.stopPropagation() and it has no effect.
I can pick up keyboard events. However, when the user presses the spacebar, the web page scrolls down in Fir...
I have a shopping cart-like form. When a user clicks on the page, in an empty space, somehow, the "Delete Item" button gets focus. Therefore, if the user clicks somewhere and presses enter, items are deleted from their cart. This only happens in IE.
What might be causing this? How can I make sure the only time this button gets focus is ...
I've got a web page that looks like this
<html>
<head>
<title>File Upload Click Test</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
</head>
<body>
<div onclick="$('input[type=file]').click()" >CLICK SIMULATOR</div>
<input typ...
I'm trying to convert HTML to plain text. Is it efficient? Am I missing something?
txt = $("body").find("script,noscript,style,:hidden").remove().end().text();
Thanks!
...
Is there a way to access a drop down options text using JavaScript?
For instance I can access the value by doing:
document.getElementById("transFrom").value;
But I want the text between the option tags.
Here is the HTML of a form drop down:
<select name="transFrom" id="transFrom" style="width: 300px;" tabindex="1" onfocus="retur...
i worked on a website in the latest firefox and then presented it on a machine that just had ie6 (and it looked horrible). is there anyway i can test what it will look like in IE6 without having to actually download. I see that ie8 has a compatibility mode (to show what it would look like in ie7), is there a similar thing for ie 6?
...
I am new in this and i am almost according to the documentation.
here the my query below which not works.
http://www.google.com/base/feeds/snippets?bq=product[listing type:for sale][location:@+37.33168900-122.03073100+1mi]
I don't know where i am wrong. Is there any another way to do this?
...
Using suckerfish dropdown here: http://tilwellpetroleum.com/
Client is not seeing the dropdowns (hover over "About Us") in IE7 Vista. I am not able to reproduce the issue on my end.
I know CSS pretty well but I am stumped. any advice?
...
Let's say I have a series of elements designed to render via float:left inside a fixed-width container as follows:
Item 1 | Item 2 | Item 3 | Item 4
| Item 5 | Item 6
This is fine, Item 5 and Item 6 are pushed to the second row because the container has a fixed width.
Now, is it possible to have something similar to above, except th...
Is it possible to make a link that does nothing. I want the item to be a link so I get the cursor to change on mouseover, but I don't want the link to actually go anywhere as it actually triggers the showing of a div with extra functionality on the same page.
...
Hello All,
I have created my own light box, the problem is that it shows centered on my monitor but not on wider monitors or bigger resolutions.
What is the best way to center a div across all resolutions/monitors/browers?
...
Hi All,
We need to get web page HTML source document loaded on the PIE web browser in windows mobile. source code that we tried is listed below:
IDispatch* pHtmlDocDispatch;
IOleCommandTarget* pOleCommandTarget;
WEBVIEWLib::IPIEHTMLDocument2* pHTMLDocument2;
WEBVIEWLib::IPIEHTMLWindow2* pHTMLWindow;
IPIEHTMLElementCo...