Hello. This is my code: from bs4 import BeautifulSoup import urllib2 url = urllib2.urlopen('http://www.website_address.com') soup = BeautifulSoup(url) images = soup.find_all('img') Now how can I get the "src" of img tags?

Member Avatar
Member Avatar
+0 forum 2

Hi, I have several image tags overlapping using css and am able to use hover to make the one selected move to the top of he pile. #gallery img{ float: left; width: 250px; height: 250px; position: relative; } #gallery img:nth-child(2) { left: -200px; } #gallery img:hover{ z-index: 10; } I am unable to make the hovering item stay on top of the pile `img:active` does not work. If i add anchor tags around the image tags the positioning does not work. I am not sure what to do.

Member Avatar
Member Avatar
+0 forum 5

$result = mysqli_query($con,$addtothedb); $cur = "USERS/"; echo $des = $cur.$email.'/'; if($result){ if ( mkdir($des,0777) ) { //http://pastebin.com/7J0BM5fD echo "<br/>"; echo "<br/>"; echo $file_name = $_FILES['file']['name']= 'mfix.png'; echo "<br/>"; echo "<br/>"; echo $file_tmp =$_FILES['file']['tmp_name']= 'mfix.png'; echo "<br/>"; echo "<br/>"; move_uploaded_file($file_tmp, $des.$mfix); echo "<img src='<?php echo $mfix ;?>' alt='Image' style='width:100px;height:100px'>"; /*echo "<img src=' mfix.png' alt='Image' style='width:100px;height:100px'>";*/ echo " <div id='success'> Account Successfully Created. <br> Now you can Login. </div>"; } why it doesnt working?

Member Avatar
Member Avatar
-1 forum 2

hey guys so i have these drop down menu using ul and anchor and when i click on one an image should be displayed. the problem is when i click it the image appears but then disappears right after, like a second. html: <ul> <li><a href="" onclick="document.getElementById('banquetsix').style.visibility='visible';">6 Seater</a></li> <li><a href="">8 Seater</a></li> <li><a href="">10 Seater</a></li> </ul> <img id="banquetsix" class="banq" src="image/banquet6.jpg" /> .banq{visibility:hidden}

Member Avatar
Member Avatar
+0 forum 1

Hello everyone I am facing a problem that I have never encountered before and googling around just isn't helping. I was assigned to migrate a pmWiki server to a new MediaWiki server which was supposed to run as a virtual machine on a Red Hat Cluster Suite. My coworker and I had to copy paste almost 2000+ articles. During the migration my coworker decided to make a backup script with which he effectively deleted the libc library and many other important data. We copied the image of the Hard Drive in order to extract the database of our wiki but …

Member Avatar
Member Avatar
+0 forum 2

How can I prevent a XSS attack but allow user to post iframe and img? My page is php based but I allow users to submit text and have allowed only iframes and imgs with strip_tag How do I prevent a user from launching an xss attack?

Member Avatar
Member Avatar
+0 forum 4

hello i have this little image script that work on greasamonkey, the script is good and work like a charm it help me to block images i dont want to see but i wished it has interval timer becasue i run it over site with dynamic content ..the targeted pics keep changing without even press f5 /refreshing here the script ... where i should add setInterval?? // ==/UserScript== // @grant none var images = document.getElementsByTagName ("img"); var x=0; while(x<images.length) { if(images[x].alt == "category 1" || images[x].alt == "category 2") { images[x].src = "http://www.domain/IMAGES-REPLACER.gif"; } x=x+1; } thanks hope u help …

Member Avatar
Member Avatar
+0 forum 2

I have some images in a div called main which has the opacity set to 82% #main { background-color:#191919; width:800px; opacity:0.82; filter:alpha(opacity=82); } These images however are also slightly transparant. I tried setting the opacity of the image to 100% but that didn't help. I have no idea what's causing this. The image is just a normal image with a src and alt so nothing fancy about that. Also table (so probably also div) background colors are transparant. Anyone who could help with this?

Member Avatar
Member Avatar
+0 forum 2

i am trying to make an image align to be vertically centered. As it works perfect in all browser except IE7 . I already tried a lot. here is my css and div. .vertical_align_center{ background: none repeat scroll 0 0 #FFFFFF; display: table-cell; height: 209px; line-height: 209px; margin: 4px; text-align: center; vertical-align: middle; width: 160px; } <div class="vertical_align_center"> <img src="images/text.jpg" width="100" height="50" /> </div> Any help will be greatly appreciated. Thanks in Advance.

Member Avatar
Member Avatar
+0 forum 3

I wonder which one is better: adding header image with img src in html, or as a background in CSS. Also, in source code I can specify alt (for accessibility). I know IE6 has issues with transparent png. What is your practice?

Member Avatar
Member Avatar
+0 forum 2

Hi, I am trying to add a background image in turing, can somebody so me how I would be able to do this?

Member Avatar
+0 forum 0

I need some help with sizing an image in height. My page is tzr.ro, and as you can see in some browsers such as explorer and chrome the image height differs. So i have this small piece of code that i need to adjust: img { max-width : 350px; height : 100%; border : none; } So if you could give me a hint on how to modify this, I'd appreciate it :) Thanks!

Member Avatar
Member Avatar
+0 forum 3

hi all, i am using an image as a button. so i want to disable it on some actions. so i used document.getElementById("imagName").disabled = true; but it seems that this property is not working for

Member Avatar
Member Avatar
+0 forum 12

The End.