I'm using ASP.NET Web Forms for blog style comments.
Edit 1: This looks way more complicated then I first thought. How do you filter the src?
I would prefer to still use real html tags but if things get too complicated that way, I might go a custom route. I haven't done any XML yet, so do I need to learn more about that?
...
Is it possible to call a JavaScript function from the IMG SRC tag to get an image url?
Like this:
<IMG SRC="GetImage()" />
<script language="javascript">
function GetImage() {return "imageName/imagePath.jpg"}
</script>
This is using .NET 2.0.
...
I would like to create a page where all images which reside on my website are listed with title and alternative representation.
I already wrote me a little program to find and load all html files, but now I am stuck at how to extract src, title and alt from the html
< img src="/image/fluffybunny.jpg" title="Harvey the bunny" alt="a ...
I have written a CGI script that creates an image dynamically using GET data. To include this image in my webpage, I am using the following code:
<img src="image.py?text=xxxxxxxxxxxxxx">
The problem is that I expect in the future the "text" field will get very long and the URL will become too large. From Googling around there doesn't ...
Here is the directory structure
/domain.com
/public_html
/functions
/image
/mobile
/www
the /domain.com/public_html/www folder has a file index.php
the default web directory is /user/public_html/www
in the index file is an include that includes the functions with
include"../functions/function.inc"
this works without problem
whe...
I'd like to use a selector to select the child img of the div I'm clicking on this example:
<div id="..."><img src="..."></div>
To get the div, I've got this selector:
$(this)
How do I get the img with a selector?
...
Normally you have an image tage with the src as the source of the image and the alt as the alternative text:
<img src="image1.gif" alt="Image 1" />
Can you have something like is?:
<img src="image1.gif" alt="image2.gif" />
So that means the src has an image source and the alt also has an image source.
What I want to do is pul...
In what situations is it more appropriate to use an HTML IMG tag to display an image, as opposed to a CSS background-image, and vice-versa?
Single-reason answers are welcome, but I'm hoping eventually to see a consolidated list of scenarios, rationales, etc. that can be used as a best-practice guide for making this kind of GUI design de...
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 where the image should be even though the images are supposed not to be displayed (display:none).
Any idea how I can hide the broken image icons?
...
<a href="'.$productLink.'" alt="'.$productName.'">
<img src="'.$productImg1URL.'" alt="'.$productName.' '.$productType.' ">
</a>
Hello the img src is actually in a different directory /images
I know this is probably super easy but Ive spent an hour on it and nothing. The page works but doesn't show the directory. Please help the roo...
I'm working on sending out an html based email, and every time it sends the image src tags and some of the anchor href tags are modified to be relative url's.
Update 2: This is happening between when the body of the email is generated and sent and when it arrives in my inbox.
Update: I am using Postfix on a LAMPP server. In addition,...
Hi there, I have a question.
Firstly, I am not going to pretend that I know what I am talking about here. I am a newbie to http and JavaScript.
I think my question may be answered in this post
http://stackoverflow.com/questions/116967/img-src-tags-and-javascript
but I thought I would explain the exact thing I am trying to achieve in ca...
Hello,
There are two img elements that use the same map with one area. Now, we bind e.g. a click event handler to the area element. Is it possible to determine from the event handler which image instance has been clicked?
...
Hey,
I'm building a HTML application to run in an Adobe AIR container, but the alt tag for the img element and the title tag for the a element doesn't do a tool tip like a browser would handle. Is there anyway to enable this, or display it another way?
Thanks
...
I set the src attribute of img the way below but was not working :
src="/../files/filenamee"
the image is not shown.
How to do it correctly?
...
I'm trying to add an arrow image beside the text within a span. Here's the HTML I'm working with:
<span id="status" class='unreviewed'>
Unreviewed
<img src="bullet_arrow_down.png" />
</span>
Now, I've coloured the background of the span with this css:
#status {
float: right;
position: relative;
cursor: pointer;
-moz-back...
hey guys,
i have the following code in my detailansicht.php:
<div class="file_description_box">
<b>Beschreibung:</b><br /><br />
<?php
if(!empty($beschreibung))
echo '<div align="center">';
echo '<img src="$coverlink" alt="Cover">';
echo '</div><br />';
echo fo...
Sometimes in a floated div. IE6 does not display tags, however it does space the image correctly, and when you right click the image it gives correct details like size and file size. It just does not display the image:
<div style="float:left">
<img src="one.gif" />
</div>
<div style="float:left">
<img src="two.gif" />
</div>
...
I'd like to be able to create a simple PNG image, say of a red square using a c# web based service to generate the image, called from an <img src="myws.ashx?x=100> HTML element.
some example HTML:
<hmtl><body>
<img src="http://mysite.com/webservice/rectangle.ashx?size=100">
</body></html>
Is there is anyone who can cobble tog...
I have a variety of image sets that I'm displaying on a web page (say 50 images per set). A user may select a set to display from a list, which is loaded via a jQuery ajax call to remove the old img tags and add the new ones.
What I'm seeing is that all of the requests for the first batch of stale images still get pulled from the ser...