I'm working on an app that would allow people to enter arbitrary URL's that would be included in <a href="ARBITRARY URL"> and <img src="ARBITRARY URL" /> tags.
What type of security risks am I looking at?
The app is coded in PHP, and the only security countermeasure I currently perform is using PHP's htmlentities() function against the...
I need some javascript code that dynamically adds an img tag to a div, and the img tag needs onmouseover and onmouseout handlers.
I have it working on Firefox. But it doesn't quite work on IE. On IE, the img tag is added, but the onmouseover and onmouseout handlers are not active.
Here's the code:
<body>
<div id='putImageHere' />...
I've added some expand/collapse functionality to a table with jQuery and I'm now trying to do some fine tuning on the button positioning with CSS, - yet I can't seem to act on the img element.
Here's an extract from my code:
<body>
<h1>Outstanding repairs assigned to me</h1>
<table class="sortable paginated collapsible">
<thead>...
I'm working in a site with the plugin jq.imghover1.1.js for jquery.
The plugin works great almost in any circumstances, but I did a position:absolute for a div that contains the images that will be affected by the plugin and now when the plugin fade the hover images in, they do it far to the right of the original button.
The Code:
<htm...
In IE6 only, using Accordion jQuery plugin to open DIV element, all img element (backgrounds too) inside the DIV are loaded at each click to open or close the choosen element.
Exemple :
there is 10 closed DIV, you click on the 2nd one to open it, you can see in the status bar the requests to load all img elements inside the both 10 DIV...
I have a list of images in an html table and need to overlap a small icon on each image. How can we do this using z index and positioning?
...
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 you scroll explains it best.
Any ideas?
EDIT: The source of the problem seems to be that the image is inside a div that has float right.
EDIT2: This http://trac....
I tried to bind click and animate function on a img tag. Its works fine in firefox. but went wrong with IE. So i simplified the code and tested only for click . Even click function is not clled. Here is my click function for my img tag with class 'arrowimg'.
$('.arrowimg').click(function(){alert("Show me")});
I get this alert in FF bu...
So how do I align an image caption under an image tag to it's right hand edge?
Tried using div but obviously that's not allowed in wp.
What alternative css/tags do I need to use?
...
For now jQuery timepicker component is invoked wit click on input.
This is timepicker config:
<script>
...
oScript.text += "var timeId = '#' + '<portlet:namespace/>' + '_time';";
oScript.text += "$j(timeId).timePicker({startTime:new Date(0, 0, 0, 0, 0, 0), step: 30});";
...
</script>
This is jsp part for timepick...
I am using JQUery UI to for the front end of a rails app I am developing. I am using jQuery dialog windows for displaying some tabbed data and inside one of these tabs I want to render some images.
The rendering of the images works fine if I view the page without Javascript, however for some reason when putting it all in a dialog windo...
I am trying to imbed an image in my php emails and use as a signature. Meaning at the end of the email I want to have an image. I have tried many different combinations and for the most part am not getting the image to appear. Are there size restrictions for images or am I just doing in a way that is making it to heavy? A few things I ha...
How to set maximum height or width for:
$img_attributes= ' height=100 width=100 '. 'alt="'.$product['product_name'].'"';
...
I want to use the display: table-* css properties to format a list of photos. I believe that below is a "correct" implementation of it, in that there's nothing theoretically wrong with it, but it displays in Firefox and Safari with the table layout screwed up, as you can see by the borders. For a comparison, try wrapping both img tags be...
I'd like crop an image in PHP and save the file. I know your supposed to use the GD library but i'm not sure how. Any ideas?
Thanks
...
I have a bunch of image thumbnails I'm displaying in a web page. All of the images are 256 pixels wide, and I'm shrinking them 50% with <img width="128px" ...>
Most images have a 4x3 ratio, so they grid quite nicely over several rows.
However, some images are very tall (e.g. 256x1200). I would like to specify a maximum height for the...
how to get image source from an img tag using php function.
...
Hi!
Please advise the best way to compress satellite Image. Details
Uncompressed size - 60 gb
Uncompressed format - IMG
4 Bands (To be retained after compression)
Preferred compression format - JPEG2000
Lossy enough to aid in Visual analysis.
Thanks
Monika
...
Hi All,
I was just wondering if the <img> tag should be wrapped in <p> tag or it can be just used without <p> tag.
Thanks
...
Hey guys,
I have a web page where I have text with images. I write some text (in a paragraph) then put an image, then another paragraph.
Should I put p tags around the image too, or should I just leave it in between with just the img tag?
The reason I ask this is because up until now I was just plopping images in between paragraphs, ...