My JS code includes some images that are empty at the beginning
(without src attribute specified at all + display:none).
When added to sites with CSS1 compatibility I see broken image icon ... |
I'm using the select form to navigate around a page.
<form name="form">
<select name="menu1" onChange="MM_jumpMenu('parent',this,1)">
<option value="#" selected>SELECT</option>
<option value="#a">location A</option>
<option value="#b">location B</option>
</form>
I'd like the select form to have the ... |
I am probably missing something simple but it's quite annoying when everything you read doesn't work. I have images which may be duplicated many times over the course of a dynamically ... |
use javascript or other method ?
have any recommendation?
|
When using javascript to swap images the HTML is updated fine but what Opera actually displays is not unless you scroll or resize the window. A picture of what happens when ... |
I've come across an obscure problem where many of the pages on my company's website take several seconds up to several minutes to load. Ordinarily, one would expect a browser's ... |
Hello JavaScript guru's. I have a simple JS question on how to replace all IMG src path's on a page.
Currently, my IMG tags look like:
<img src="path/to/image.jpg" alt="" />
Output desired:
<img src="../image.jpg" alt="" ...
|
|
I'm trying to implement fire-and-forget on an img src=... call from a web page, and am looking for the most solid method. Why?
In most Web tracking systems like Omniture or Coremetrics, ... |
I'm getting weird 404 errors on my site for the following URL:
GET /%27%20+%20item.icon%20+%20%27 HTTP/1.1
I've got some corresponding code in my HTML file:
<script type="text/javascript">
function foo(item) {
...
|
I'm using javascript to create an image element like so:
var img = document.createElement('img');
What would I do to give this img a width of 100%?
|
So I have this php script that output an html table with data about some files (like filename, filesize, etc...)
I have this javascript function that displays the picture when you hover ... |
I have something like:
document.getElementById('MyPicture').src = 'attempted.png';
If the client cannot get that resource, I would like to replace it with:
document.getElementById('MyPicture').src = 'error.png'
I know I can put onError=function() in the image tag, but ... |
If I have an img tag like
<img src="example.png" />
and I set it via
myImg.src = "example.png";
to the same value again, will this be a no-op, or will browsers unnecessarily redraw the image? ... |
I was wondering is it possible to customize the tooltip that we get after setting the title attribute in an img tag? Now I get a standard rectangle with blue background ... |
I have 4 images that I use as a navigation menu, when I click on one it lights up (changes image) and the current goes out, and so on so forth.
It ... |
When you move your mouse over a link with title, after a while it will show the title as a tip. Is it possible to remove this delay or change it ... |
I have something like this:
<img class="side_image right" id="side_image" src="http://path/to/file_large.jpg" width="300"
height="210" onload="document.getElementById('loading_gif').style.display = 'none';" />
My problem is how to tell if the image does not exist. This block of code ... |
It works if the html file is local (on my C drive), but not if the html file is on a server and the image file is local. Why is that?
Any ... |
I have some html and javascript that implements a slide show for a set of images. Now I'd like to include .txt files.
Is there anything in html or javascript that ... |
20. Attributes stackoverflow.comI've got some java script code that implements a kind of slide show. It uses a series of img tags as a table to control its actions. I probably used ... |
Im trying to place a png image over an object element containing a youtube video
here:
<object>
scripts...
</object>
<img src='src' style='position:absolute;top:-10px;z-index:99;'/>
the position property is not applied to the object and yet once the embedded video ... |
I've got a drop functioning dynamic drop down menu that I'd like to add a little more functionality to. The menu is the page navigation and hovering over a link changes ... |
I am new to javascript. I want a javascript code with which i can load an image which is named for every day/month/year. in a serial
i have the following code :
var ...
|
The problem: whenever, if i have the single '=' the variable will show up and be fine.. but it completely ignores the if statement. if i only do the double ... |
I want RE for this string pattern:
src="http://www.prphotos.com/f/1335/CSM-001335/Robert-Pattinson,-Reese-Witherspoon-Water-for-Elephants-New-York-City-Premiere---Arrivals.jpg" border="0"
I am using:
<img.[\w+\s+\d+\W]*/>
Also do I have to write different RE for different languages like javascript,PHP etc?
|
I have a page with a block of thumbnails (small images) and I would like a bigger version of the image to appear when a small image is clicked on. Both ... |
I want to make the logo (in the top left corner) always keep its aspect ratio, but I also want it to stay in the right place, for any browser. Here's ... |
I'm having trouble using an ascii character reference (®) in an image title. It works fine when you set it via the html body, but when trying to do the same ... |
I have some javascript to set the offsetLeft attribute of an img element. But my javascript doesn't move the HTML element, what do you think I can do to make it ... |
I have a pikachoose script installed and working properly but I need to have the thumbs named in this form: imagename-100x120.jpg
Currently the script takes the src of which lies ... |
I am extracting an image from a part of the document using:
var theImg = document.getElementById('imageDiv').innerHTML;
This returns something like
theImg = <img src="http://website.com/image.jpg?&image-presets&" alt="foo" style="z-index: 1" />
How could I grab just ... |
I trying add to link in ckeditor/lugins/link/dialogs/link.js:
if(N.length==1&&N[0].collapsed) {
var O = CKEDITOR.dom.element.createFromHtml('<span><img src="/images/elfinder/fileicon/exampleimages.png" />text</span>',w.document);
N[0].insertNode(O);
N[0].selectNodeContents(O);
M.selectRanges(N); ...
|
I have piece of offline html like so:
<img src="../img/button.png"/>
and when I try to access the src attribute in JS, I get a different value than what's written in the html:
var s ...
|
I'm using a WebView in my cocoa application, I would like to extract an image's url from the WebView.
I've been trying to use stringByEvaluatingJavaScriptFromString to extract it with no avail.
NSString *imageURLString ...
|
I have written a tiny bit of javascript which uses two images.
inside the code it does something like
str+='<img src="left.jpg"></img>';
...
str+='<img src="right.jpg"></img>';
...
The script works very well.
The problem is that depending which HTML ... |
Hi guys, I have this simple problem with html that I can't seem to figure out. I have a page with items, if you click on an item a popup shows. This popup contains a html page with an image. The image is not shown. This is my problem. Now I know why, but I don't know how to solve this. ... |
So my goal was to insert a mini ICO image (of an R) and have it be a link to an external news page for each individual player on a fantasy team. The code below gets the proper link to each player and inserts the image and corresponding link one at a time though a couple different functions. I have inserted ... |
"); echo ($exploded[1]); //total page in the comic $pagecount = (int)$exploded[1]; //Take last posted value, process it right away echo (' |
Hi, I have a div "bigPicture" which contains an image of Thai food. Image can change based on a users onclick of thumbnails. Each image as it passes through div "bigPicture" needs to have the values: price, description and Date,Time associated with it. How do I assign those values and use them later in a Shopping Cart environment. I have tried ... |
I had tried the alert, and it shows the correct path. Even in live server, I checked with firefox and it is showing the page properly. So, it does look like the issue is compatibility with IE6. ckeyrouz, The code is not owned by me and I am not allowed to post it as per company policy. Sorry about that. Anyone ... |
|
|
|
|
OK, I now have the argument passed in correctly so that i can identify the src of the img, however, i'm not sure how to edit that src (i used getElementById(c)) to find the src) i assume i could use this.src to edit it, but in the scope of the function this.src is not defined, is there a way to make ... |
|
You can change the value of the .src property on image objects, so you could replace that value to a "loading" message images as your intended images load by testing the .complete property with a setTimeout() function. I thought about writing some example code, but I felt it was better to avoid the issue in the first place. Just make your ... |
|
|
|
OK, upfront i'll apologise for this trivial and im sure very simple task but I am a complete novice. I have downloaded 2 html pages that give me page1 with a drop down box for a list, and a 'show' button. this then passes dropdown value to page2 and JS presents the text on the page, but I want to use ... |
__________________ Three gigs for the secretaries fair Seven gigs for the system source Nine gigs for the coders in smoky lairs One disk to rule them all, one disk to bind them One disk to hold the files, and in the darkness grind'em --------------------------------------------------- It is by caffeine alone that I set my mind in motion. It is by the beans ... |
53. Img.src forums.devshed.comit's using an image call to pass data to a server script. the server script returns the binary data for a blank image, but takes the input data and does something with it. it's a useful technique to silently send information to a server, since the background-load of the image source has no effect on the page. HTH - derelict |
|
|
|
|
|
|
60. Get img src forums.devshed.com |
One question: what the heck are you doing? I'm serious-- I missed the problem altogether... I thought I would be able to find out, but by your code you've provided, I only was confused more. With the code that you have already posted, you are adding the same exact HTML elements and function to the parent node ("copying"). What is this ... |
|
|
|
|
The document.images.SlideShow.style.border = "solid 4px #000000" worked perfect!!! Thank you very much. To be honest, I thought this would prevent code from going down this path for older browsers but to be even more honest, I am not sure what it does for me any more. I just have old code that has it in it and when I copy and ... |
|
I'll take a swing at it. It would appear that another script has modified the window object to have a 'google_ad_url' property. The first line of code checks to see if the string that is the value of that property contains a question mark and, if so, determines its position in the string. Presumably, that is to ascertain whether the value ... |
Hi all, I've got a fixed width site, and I'm implementing a heavily customised version of Simple PHP Gallery over there. Some of the images in the gallery are wider than the site itself. My solution to this is to simply let CSS do its thing, and set a max-width on them (if the user wants to see them full size, ... |
hi I'm sure this can be done.... just need a little help to figure out how! What I want, is the code to look for a particular ID of an img, and then change the filename (but not the whole path) of the image. For instance... if the path was "../images/headin.gif", the javascript would find this by the ID, and change ... |
|
|