HTML - Unable Locate Image In Local Drive
Hi,
I am a noobie, now in the middle of learning HTML. I tried to move an image from my local drive but it seem not working. Below are my code. HTML Code: <html> <body style="background-color:PowderBlue;"> <h1>This is Page1</h1> <p>This is some text.</p> <p><a href="mainpage.htm">This is a link to Main Page</a></p> <p style="font-family:times;color:white;font-size:30"><a href="page2.htm" target="_blank"><acronym title = "TEST TEST TEST TEST">This is a link to Page <sup>2</acronym></a></p> <br /> <p> <b>You can also use an image as a link:</b> <a href="mainpage.htm"> <img border="0" src="pulpit.jpg" width="265" height="238"> </a> </p> <br /> <br /> <img border="0" src="http://www.w3schools.com/images/pulpit.jpg" alt = "picture" width="265" height="238"> <h1>Look! Styles and colors</h1> <a href="#tips">Useful Tips Section</a> <p style="font-family:verdana;color:red"> This text is in Verdana and red</p> <p style="font-family:times;color:white;font-size:50px"> This text is in Times and green</p> <p style="font-size:30px">This text is 30 pixels high</p> </body> </html> The image file was located in the path "C:\language\lesson1\images\pulpit.jpg" The script file was located in the path "C:\language\lesson1\test.htm" Is there any initial setup to be done in order the IE could locate the images? Thanks in advance. Similar TutorialsGreetings all. I have what i would think should be an easy thing to accomplish, but i just don't know how to do it... i have a .exe that is on a usb drive which currently auto-runs when you plug the drive into a usb port... what i want to do is have an HTML file that basically acts as a splash screen, w/ other options, that auto-runs instead... all of which is easy enough for me... but what i don't know how to do is to get a link on the HTML file to run the .exe as opposed to give the prompt to save it... is there an "easy" way to do this? both files reside on the same directory of the flash drive, and the .exe would only run when the user clicks the link... seems like it should be possible since i can auto-run the .exe, but w/ security restrictions, i can't seem to figure it out... TIA Hi there people, thanks for viewing the new thread about sitemap.xml I have generated our sitemap for the website, whats all this robots.txt ? i thought you had to create the sitemaps in xml code then just upload to your webhost directory folder as: sitemap.xml ? is this right or wrong? here is the sitemap by the way. http://cdn.snapsitemap.com/sitemap/43181.xml Hi, I have to edit some part of my website and I need to easily know from which php files my html code is generated. Is there any easy way to know it ? thanks Hi there, you might remember me from this thread. (which was resolved by Mandarin, thanks you!) Now Im back with another, kind of the same thing: "Click -> Locate page -> & then slide down?" Allow me to explain: So ive got this header.php right. And the header file is included at every page. All the links in the header.. link to 1 file. (diensten.php) BUT, each link links to different areas within that file... So what I would like to achieve is that when a link in the header is clicked, it slides down to the correct page-area. Porblem is.... after clicked, is doesnt even go the right page. I think the smooth slider jquery-plugin is interfering someway. I already laid down the groundwork inside the header. Please have a look here. Would my wish be possible? Or should I just lay it to rest? Thanks. Hello everyone. I hope someone here can help me, or at least tell me what I need to do can't be done! Here is my situation: I have a .war file that calls an index.html file from a shared directory. That works great, but unfortunately the c: drive on my server is running low on space, so the server admin wants my shared directories to be moved to the d: drive. I have modified the index.html file on the c: drive being accessed by my .war file to load another index.html file on the d: drive, but it is not working. I have tried <BODY onLoad="document.location.href='d:\index.html'"> and <SCRIPT LANGUAGE="JavaScript"><!-- function go_now () { location.href = "D:/index.html"; }//--> </SCRIPT></HEAD> <BODY onLoad="go_now ()"> Any ideas? Thanks! I have a PHP application that our company uses for basically everything. Now I'm needing to add hyperlinks to folders on the shared drive on the server, since this is now where everyone will be storing the files they work on. The map drive is on the same server as the website but so far I have been unable to figure out the syntax for the hyperlink in order to be able to open the folder contents. Any ideas on how I could do this? I'm looking for a way to have a link to a hard drive - that works both with a Windows machine (not running Resin), and a Unix (Macintosh) machine. Obviously I can't hard code file:///C:/htmldocs/home_page.html and have it work on a system without a C: drive. I am creating a prototype of a website on a local cdrive that will be installed on thousands of other computers, also on their crive. As such, thanks to SP2, there are warnings that come up when the home page of this site is opened up (yellow bar at top, several clickthroughs that you have to click on). I installed the .... `fix' which was to add to the top of the page a `Mark of the Web' which was to add this line of code <!-- saved from url=(0013)about:internet --> as the very first line. Intial problem was solved, this page now opens without any warnings ! HOWEVER A NEW PROBLEM WAS CREATED! Once on this page, any subsequent links to pdfs do not work AT ALL! Question: how can I stop the error messages and maintain full functionality to provide links to pdfs? Mo The solution cannot be changing settings on their browsers, or changing a registry key, or shipping a CD with the site on it, or putting it on the internet. HI, Can anybody recommend a gadget for Previewing / Thumbnailing HTML templates on my hard drive. I have lots of index.html pages in different folders and I'm looking for a way to flick through them, rather than having to go in and open the files individually. Hi, I've been working on this page for quite a while: http://www.mymusiclair.com/supporter It displays correctly in Chrome, IE, and FF on my hard drive, but once i upload it it displays wrong in everything except IE. I used FrontPage 2003 to make it... any suggestions? Thanks, Vicky Im new to all this so excuse me if i ask/say stupid things...im still learning so im doing an email newsletter with like 8 images or so and its all good,so actually there is no problem...but thats what i dont understand. The path for the pictures is this: <img style="display:block;"src="file:///C|/Users/robbysanne/Documents/nieuwsbrieftemplates/html/images/se1.jpg"width="69"height="235"border="0"alt=""/> there in tables. So the images are on my harddrive...not online...but when i send the email with mozilla thunderbird to various hotmail,and gmail acounts on different computers elswhere the pictures still show up....and not as an attachment that you first have to download,but the whole newsletters displays properly. How is that possible? i thought that i was supposed to put the images on a server first,get them online and then link them.. thanks! I have a thumb drive that have portable apps on it. I am trying to make a help file in html for each one. The problem I am running into is that i can't seem to make it load pictures. Code: File structure F:\PortableApps\7-Zip\ (Where the help file is) F:\PortableApps\PortableApps.com\App\Graphics\HelpFiles\ (Where the pics are at) What code do i need to make this work? Code: background-image: url(..\PortableApps\PortableApps.com\App\Graphics\HelpFiles\help_background_header.png); Thanks! In the following code, the image display is inconcsistent: - Firefox: works in all cases - IE7 over Internet: works - IE7 locally: image does not display; I get a placeholder. - IE7 locally on my other computer: works. By "locally", I mean that the HTML file and the image are on my local hard disk; by "Internet", I mean that the HTML file and the image are on the server at my web site service. The image is in the same directory as the HTML file in all cases. Here's the code: <!DOCTYPE html PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html> <head> <title>My Page</title> </head> <body> <p>Welcome to My Page</p> <img height="231" width="346" border="0" src="roadtrip003.gif"> </body> </html> I suspect an IE7 setting on the offending computer, but I've looked around quite a bit and it ain't obvious to me. Any thoughts? Guys n Gals. Is it possible using HTML to search local folders for files. The scenario: At work we have a networked folder, that is constantly being updated with either txt files or xml files and such. This changes on a daily basis. Is it possible to search using html. I don't wish to build a database, as this would require constant attention. I would like to send out a small HTML page, with our company logo, that references the newtrk location. If so, would anyone know or have the code to do this. Java would also be suitable. How to attach a local file to mail with "mail" syntax? Thank you! -gav hi all, i have created a website presentation for my project with about 1000 pictures with only simple html. The website will not be online and is intended to be use only offline from local disc. I don't know why but the pictures are not cached. Is that a limitation to offline websites? Also when I create simple code with only one picture in it, it's not cached. A I doing something wrong? I'm using IE6. Thanks Boris Hi, I have access to managing a site using Dreamweaver. I need to update a few images and pdf files into a folder located inside the remote view, to be uploaded to the Internet. I can delete the old files from that folder located in the remote view; Can you please explain how do I get the new files inside the remote view so that I can upload them online. I dont have the folders on my deskstop. There is a local view though, but I cannot locate the folder that needs to be updated. Please advise. Thank you I'm currently trying to make a website that uses paypal. Here's what I have so far. 1 - User Clicks "buy now" button 2- User is redirected to paypal 3-User completes payment 4- User is SUPPOSED to be redirected to my site. Since I am hoping to test this page offline, I have my site in a local file. I need to use the return command on the "buy now" button so that paypal returns the user to my site, however, since I am just testing (using paypal's sandbox) I want it to return me to a local file on my hard drive. Apparently Firefox has a security feature that will not allow you to link to local files, but I was hoping to bypass this feature. Is there anyway I can do this? I have firefox 2.0. Thanks! Hi, Does anyone know how to link a local file and open up in your browser? I have tried <a href="file:///C:\TestFolder\test.xml" target="_blank">TEST FILE</a> But it doesn't work . Can anyone help me with this? Thanks , Geek.Shrek Hi all, I need to have a link on my web page which allows the user to download a file on the c: drive of my web server. Basically when they click the link they will be prompted to download this file. Any ideas on how this can be done? I tried the following on FF but it does not work... <a href="file:///C:/testUpload/CA_P1470H_2008-1209-143322.xls">major_bob_12-09.xls</a> Thanks in advance for any help. |