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

$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

So I have this code here: http://jsfiddle.net/4Cqkh/1/ What I'm trying to do is when I click on a thumbnail, the below larger image of it should display according to which thumbnail is clicked. I tried switching the larger image's src to that of the thumbnail src's value when clicked but it's not working correctly. (I had to exectuce the js's function by calling itself instead of using onclick since the onclick doesn't seem to work when I tried wrapping it into the img tag). Any help would be appreciated.

Member Avatar
Member Avatar
+0 forum 1

Hi, My question goes as follows : I need to replace an existing image, with another one, but without using jquery ie using javascript and using the id of the image as it is <asp:Image> tag and hence does not support name. The image supports the functionality of toggling the text as menu but image replacement is not happening. Kindly help.. Please !! My code in user control is : <tr> <td nowrap="nowrap"> <div id='h<%# DataBinder.Eval(Container, "ItemIndex") %>' onclick='visible(<%# DataBinder.Eval(Container, "ItemIndex") %>);'> <asp:Image ID="ArrowImageButton" runat="server" ImageUrl="~/images/downarrow.png"/> <%# DataBinder.Eval(Container.DataItem, "Header") %> </td> </tr> and the javascript I am trying is : …

Member Avatar
Member Avatar
+0 forum 2

I have it set up so that onclick (on a picure) calls the following function: function nxtimg(country){ document.getElementById("imgcont").src="images",country,"/",imgs[i],".jpg"; i++; } When I click on the image however, accorfing to firebug, the src of the image is; "images". It should have been changed to something like: "images/a/flag". Where did I mess up?

Member Avatar
Member Avatar
+0 forum 8

Hi, I am running Ubuntu 10.04 LTS, and wanted to install RVM today, I used: bash < <( curl [url]http://rvm.beginrescueend.com/releases/rvm-install-head[/url] ) (NOTE: I already have git-core and curl, etc.) After running that command I get the output in terminal from Wayne, and I added: if [[ -s "$HOME/.rvm/scripts/rvm" ]] ; then source "$HOME/.rvm/scripts/rvm" ; fi to .bashrc. I also replaced the return statement in .bashrc with the one recommended on the RVM website. After a system reboot, I tried to run rvm notes, and then a bunch of: "No such file or directory" lines are printed. I'm no Linux expert, …

Member Avatar
+0 forum 0

Hi, When I set width and height properties in the <iframe> tag, it sets the width and height respectively, however, the "src" page inside the iframe is still small and has a scroll bar. Is there a way to set the src to be equal to the iframe dimensions? Thanks, Ashton.

Member Avatar
Member Avatar
+0 forum 2

The End.