I would like to display the image from a network camera on my web page, but the image is behind a HTTP basic authentication server.
In Firefox and Chrome I can do this:
<img width="320" height="200" src="http://username:password@server/Path" />
But in Internet Explorer 8, I get an empty image box. If I use JQuery to set the src attr...
I have an html table in which I am placing images side by side inside the td's. How can I get it so that there is no space at all between each image? By default all browsers seem to put in a small space despite 0 padding and margin on each table element. I am not specifying a width on the td's so by default it takes up the width of the ...
I am trying to wire some fancy Javascript (PopBox) to an ImageButton control and I am getting a very strange run-time (Compilation) error.
<asp:imagebutton id="imgBtnPicture" runat="server"
class="PopBoxImageSmall"
pbshowcaption="true"
title="Click to magnify/shrink"
onclick="Pop(this,50,'PopBoxImageLarge');"
...
i have function that changes background color of element and src of image.
in opera and firefox background changes while image is loading, in ie background changes when image is loaded.
so if there any way to change bg in ie before image has not been loaded?
...
Hello,
I'd like to know if it's possible to get a reference to all img controls on a page though the renderchildren method. Basically, I'm trying to seek the img tags to manually resolve their ~ path... This is the code I have so far...
override protected void RenderChildren(System.Web.UI.HtmlTextWriter writer)
{
IterateControls(th...
Hello I am currently working on a program and I would like to add a button that would allow the user to Load a picture from his computer into the Image
procedure TForm1.btnLoadPicClick(Sender: TObject);
begin
img1.Picture.LoadFromFile( 'test.1');
img1.Stretch := True ;
I was using this code but it limits the person to only being ab...
Possible Duplicate:
How to get IMG tag code from HTML document?
I need help to make preg_match_all() for every image URL on random page.
As far I do this
preg_match_all('/img[\d\D]+?src\=(\'|\")([\d\D]+?)(\'|\")/i', $page, $matches);
But won't work for every page.
Must match all possible image closed in img src also ones...
First the result in Firefox 4 Beta 8:
The former element shown is a button with an img the latter is a div with an img. As you can see in the former case there is some strange space between the border of the img and the border of the button. I wonder how I can remove it.
Here the CSS file:
* {
margin: 0;
padding: 0;
}
butto...
This is a followup to my previous question. It dealt with a rendering issue in Firefox. After that issue was fixed I obviously tested the design in other browsers. And obviously - how could it be different - I encountered yet another rendering issue, this time in IE7.
The former of the above elements is a button containing an img. The...
Can I do this?
$("#myImage"+1).attr("src", "path/to/newImage.jpg");
Because the image is like an array so the id for the img tag is myImage1
<img src="path/to/oldImage.jpg" id="myImage1">
...
I have a series of parragraphs. Each one ends with a ilustratión which clarifies the subject being xplained in the parragraph.
I want the ilustration to be on a new line and not display along with the text and I have found the following solutions, with it's own problems:
Put the ilustration in a different <p> than the text related to t...
Hi
I need to show an alternate image in cell of table if source image is not found.
Currently below code is used to do so.
cell.innerHTML="<img height=40 width=40 src='<%=request.getContextPath()%>/writeImage.htm' onError='ImgErrorVideo(this);'>"
function ImgErrorVideo(source){
source.src = "video.png";
source.onerror...
Is there a way in ExpressionEngine to disable the img tag formatting when loading an entry's text-input field with a filepath from the File Manager? Would be great to just have the filepath listed there after selecting an image (i.e. just the string that should appear inside of the src attribute) without any of the extra html.
Have trie...
I need a jQuery function to measure the height of an image, and add margin to the IMG element, so it will always result with a regular number that divides by 17 (which is my line-height).
Any help would be appreciated. Thanks.
UPDATE: I changed the title of the question and replaced PHP with jQuery. Coming to think about it, I need the...
I need to make an image change its size according to the window size, that is, if the window is re-sized the image needs to be re-sized to fit the window.
This problem is easy enough with Chrome and Firefox, I just set 'width=100%', but IE isn't as kind...
This problem was raised several times, but I couldn't find a coherent answer, it ...
Trying to wrap an tag around an image, addClass and input src of img as href of tag:
$(document).ready(function() {
$(".new img").each(function() {
var src = $(this).attr('src').addClass('image');
var a = $('<a/>').attr('href', src);
$(this).wrap(a);
});
});
My HTML:
<img class="new" src="pic0.png" title="Image_Title"/...