HTML - A File Location Problem
On the website host i use i can put the location of the file (example, images/banner.png) but how do i get it from a diffferent file. like if the file i need is in the images file but my html file is in the "javascript" file
Here is kinda what i mean. this shows where the files kind of a ( ">" points to the file in that folder ) javascript > index.html images > banner.png .. so how do i get the image from the image file without having to put the full url to it? because i cant put "images/banner.png" cause its going to think the image file is in the "javascript" (its going to go to "javascript/images/banner.png", instead of just "images/banner.png)file since the html file is in the "javascript" file and not the main page. if you dont understand this tell me and ill try to explain it better, i tryed to make it as clear as i could. Similar TutorialsHi, I am working on a website: hxxp://www.webjuicer.be When I click on "contact" I've added <a name="top"> tag on that page, that's why the url includes #top. (the browser should automatically scroll down to that tag on the page) Normally, like I've always learnt, this is a basic tag and should work in all browsers. However, it seems that Internet explorer has more difficulties with it. In IE it only works when I press "contact" twice, and therefore it's useless. Any one knows what I've did wrong? Thnx very much! right now i've only got 1 line of code in my css file and that code is div { background-color: #FCOC00 } do you need to put your codes in some sort of table or open / closed code thing with brackets or something ?? cuz with that code just the way it is when i view in fire fox IE and netscape.... all is good, when i view in opera though i get this image... i hosted the image since not every1 has opera... http://img104.imageshack.us/my.php?i...raissuerg5.gif the "Home" is tabed back like that for some reason that space was never there it was as tight as could be to the text with that table... any advice on how i can fix this? maby i can center the tables threw the .css and call that up to fix it... http://americancreek.com/inmedia/tre...ek/player.html I am having trouble with an articulate file. If you view the link above, the articulate file will not play automatically, it says "paused". If you click play, it will not play. If you click refresh, the file will begin playing. Unsure why it will not play automatically. Dear Members: I have a funny problem. I have two html files. I am trying to use test2.html as an Include file inside test1.html. I am not having any luck test1.html file reading test2.html. Test1.html code --------------------- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title> Your Title Here </title> <meta name="Generator" content="Alleycode HTML Editor"> <meta name="Description" content="Your description here..."> <meta name="Keywords" content="Your keywords here..."> </head> <body> <h1>This is my n include 1</h1> <h2>This is my n include 2</h2> <!--#include virtual="test2.html"--> </body> </html> test2.html code <h1>This is my include 3</h1> <h2>This is my include 4</h2> What I expect to see in the browser: This is my include 1 This is my include 2 This is my include 3 This is my include 4 But I see only This is my include 1 This is my include 2 It seems like the test2.html file is completely being ignored. May be it is a simple issue. But I tried everything. Both files reside on the same directory. If anybody could give me a suggestion, I shall truly appreciate it. As they say "It is driving me nuts"... Please help. I am very new to HTML coding, so please be patient. My problem is this: I made a relative link via an Anchor tag to a .zip file, intending it (the .zip file) to be a download. When I access the link, instead getting a File Download alert box ( [run][save][cancel] ,which is what I wanted) the contents of the .zip file are displayed in the IE7 window. Is this normal? When I make the same link to an .exe file, I get the (desired) File Download alert box. Here is the snippet of my relative Link: Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <span class="button2" title="Download Utility Launcher"> <a class="style3" href="stuff/Utility Launcher.zip">Download Now</a></span> Again, I'm new to this stuff, so the Link setup could be all wrong, for all I know. But I would appreciate some help and/or comment. Thanks, JFB I have problem with playing wav file in mozilla. but working fine with internet explorer. I am using <embed> and <bgsound> . is there any way to play sound in mozilla urgent. please help I ahe to play a wav file. I am using <embed> and <bgsound> tag to play the wav file. it works fine in internet explore. But showing missing plug-in problem in mozilla. is there any ways to play sound in mozilla similar to <embed> tag works The audio files I use on my web page display the individual control (play stop pause buttons) windows on my monitor screen and all the music segments play when actuated. However some users report that they get a distorted page and nothing works. I am using XP and Vista with IE7. Can anyone help find the cause of the problem? http://www.lvrny.net/theme.htm I ahe to play a wav file. I am using <embed> and <bgsound> tag to play the wav file. it works fine in internet explore. But showing missing plug-in problem in mozilla. is there any ways to play sound in mozilla similar to <embed> tag works Hi All, I am currently facing a problem with html to mht file conversion. My html file is present in a folder with folder structure like "E:\UsersReport". Inside this folder there is another folder named "Image". This folder contains JPEG images. The html file contains href relative links to the images in this "Image" folder. The relative links are given as href = ".\Image\A.jpg". In the converted html files, the relative links is not working. For accesing the images we need to give the full image path in mht files. Is there any method to give relative links in mht files??? Please help. I want to redirect my users to C:\ but window.location won't do it, how do I do this? Let me preface this by saying I'm very much a novice at this. I've done very basic HTML for a while, but have not advanced beyond that at all except to copy and paste some nice Java scripts that I've enjoyed from time to time. I do have 2 phpBB forum boards that I've enjoyed setting up. But that's pretty step by step instructional. Beyond that, I don't have a clue. But I love the little icons that many sites use in their location lines. Google has the G, Yahoo has the Y!, and Woot has the !. I'd like to put one on my websites, but I'm having a terrible time finding the code for it. If it's done in a CSS, I'm screwed. I have only peeked at this and never attempted it. But if someone has a way to put a small icon on my location line, I'd love to see it. I do most of my own graphics, and making the icon wouldn't be a problem at all. I just need to find out how to embed it. Thanks Greetings HTML people. I am sort of frankenstining a webpage together. This is what I have so far hogepodged together. HTML Code: <!doCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="content-type" content="text/html;charset=ISO-8859-1"> <title>The works of D.M. Rosemark</title> <style type="text/css" media="screen"> <!-- body { background-color: #ffffff; margin: 0px } #horizon { color: white; background-color: transparent; text-align: center; position: absolute; top: 50%; left: 0px; width: 100%; height: 1px; overflow: visible; visibility: visible; display: block } #content { font-family: Verdana, Geneva, Arial, sans-serif; background-color: transparent; margin-left: -250px; /*half the iframe width */ position: absolute; top: -150px; /*half the iframe height */ left: 50%; width: 500px; /* ifame width */ height: 300px; /* iframe height */ visibility: visible } iframe.one { width: 600px; height: 375px; border-style:ridge; border-width:10px; border-color:#999999; padding:1px; } //--> </style> </head> <body> <div id="horizon"> <div id="content"> <iframe class="one" frameborder="0" src="http://www.webmasterworld.com/category10.htm" scrolling="yes"> </iframe> What I want to accomplish next is to border the Inline frame with Images I create in photoshop e.g. 2 side frames, one top banner, one bottom banner. How do I accomplish this in HTML? What are the technical challanges with this request? I have tried to search this out, but haven't found the necessary information. Thanks guys. D.M. Rosemark Hi, I wanted to know if someone can help me use th right html code to display the proper city for someones IP. I have found this site : http://www.hostip.info/use.html but I dont understand how to integrate it into my html. So I want something like this "hello my name is bob and im from" and thne right after the site displays their city. I know its not always accurate but it doesnt matter, if its off then no big deal but the times its on could be a good selling point. I did a search and found someone else asking something similar long time ago but it didnt really help me as it dealt with php. is Php required to do this? If so how can i do it to integrate it into my html, maybe by putting this section in an iframe of php.... Point is I wouldnt want to redo the whole website in php, considering I dont know php. Thanks! Hi I have this problem that my comment script is located at public_html/comments but the page that needs it is at public_html/hamburgerbar/fish/dish so in the code when i have the php include pointing at /comments, its not working how do i make the browser understand where the comments its? cause i tried with http://www.mysite.com/comments and it says permission denied. However when i move the target page in the comment folder it works like a dream. So how do i point my include link there? Thanks for help! Hi guys, I'm trying to create a form which uploads an image from the user and saves it in the database. However with the code I have so far it seems the input isn't working. Any help would be appreciated. This is what I have: <html> <head><title>Store image into SQL Database</title></head> <body> PHP Code: <?php if ($_POST[submit]) { include("connect.php"); $data = addslashes(fread(fopen($_POST[form_data], "r"), filesize($_POST[form_data]))); $result=MYSQL_QUERY("INSERT INTO binary_data (description,bin_data,filename,filesize,filetype) ". "VALUES ('$_POST[form_description]','$_POST[data]','$_POST[form_data_name]','$_POST[form_data_size]','$_POST[form_data_type]')"); $id= mysql_insert_id(); MYSQL_CLOSE(); } else { ?> HTML Code: <form method="post" action="imageupload.php" enctype="multipart/form-data"> File Description:<br> <input type="text" name="form_description" size="40"> <input type="hidden" name="MAX_FILE_SIZE" value="1000000"> <br>File to upload/store in database:<br> <input type="file" name="form_data" size="40"> <p><input type="submit" name="submit" value="submit"> </form> <?php } ?> </body> </html> Hi. i have a option menu that come behind the adobe pdf embed. after open this link http://thewebcodes.com/index.php?id=2 when we go to the first menu option, it goes behind (this only appens in Internet Explorer) How could i solve it? Thank's in advance I have embeded a layer on my page but cannot set the exact location of the player, like move it 10% to the right or 20% to the botton the only attribute i can play with is align which either puts ir extreme left/right or so called centre, so how do i set the exact co-ordinate if you may so i can put it exaclt where i want to. Hi, I'm trying to build a program that automatically picks images from a given web page. As you know, there's a lot of relative paths used on those. Now, I got to my first big problem, this is the address I'm trying to use: http://www.nba.com/games/20090117/ORLDEN/preview.html this is the address where image is: http://www.nba.com/media/homepage/bullet_video.gif and this is the address source code refers to: img src="/media/homepage/bullet_video.gif" border=0 Now, note that there's no ".." in the front of that address. Question: How can I determine based on the address when the location of image is http://www.nba.com/media/homepage/bullet_video.gif and when it is http://www.nba.com/games/20090117/OR...llet_video.gif And yes, this is 100% about automatizing the process, so the answer I'm looking for has to be something I can tell to VBA (the language I'm using to write my program). Thank you for any answer. hello people! so, i need some help with placing a table in a specific location in my website. please check it out here, www.tech-nuke.com. you will notice that there are a white blank space in the left side of the page, which i want to place a table there. and just for clarification, i want to place a table tag so the white empty area become independent (not really!) from its neighbor. i have been trying so hard to get something in that specific area but every time i missed up the desigen of the page. here is the html code of that part of the page: PHP Code: <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td valign="top" class="titlebg">مرحبا بكم في <?php bloginfo('name'); ?></td> </tr> <tr> <td valign="top"><table width="100%" border="0" cellpadding="5" cellspacing="0"> <!--Added: Latest forum topics --> <tr> <td valign="top" class="cell-t" style="border:1px solid #ccc;">اخر مواضيع المنتدى</td> </tr> <td class="cell-h"> <? include('recent-topics.php'); ?> </td> <!-- Added: Remove for box 4 --> <tr> <td valign="top" class="cell-t" style="border:1px solid #ccc;">احدث موضوع</td> </tr> <tr> <td class="cell-h"> <?php $recent = new WP_Query("cat=25&showposts=1"); while($recent->have_posts()) : $recent->the_post();?> <div class="cat-image"><a href="<?php the_permalink() ?>"><img style="padding:0px; margin:0px; border:0px;" height="150" width="150" src="<?php echo get_post_meta($post->ID, "Thumbnail", true); ?>" /></a></div><?php the_content_limit(800, ""); ?> <div style="display:block; text-align:right;"><b><a style="font-size:14px;" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?> »</a></b></div> <?php endwhile; ?> </td> </tr> <!--end added: remove for box 4 --> <tr> <td width="65%" valign="top"><table width="100%" border="0" cellpadding="5" cellspacing="0"> <tr> <script type="text/javascript"><!-- google_ad_client = "pub-6723104396625340"; /* 468x60, created 4/26/09 */ google_ad_slot = "7601118167"; google_ad_width = 468; google_ad_height = 60; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> <td valign="top"> <table width="100%" border="0" cellpadding="5" cellspacing="0"> <!-- <p>1</p> --> <!-- Added: Remove to get box 1--> <tr> <td valign="top" class="cell-t" style="border:1px solid #ccc;">++C</td> </tr> <tr> <td class="cell-h" style="padding:8px;"> <?php $recent = new WP_Query("cat=17&showposts=2"); while($recent->have_posts()) : $recent->the_post();?> <div align="center" class="Small-Landscape-image"><a href="<?php the_permalink() ?>"><img style="padding:0px; margin:0px; border:0px;" height="80" width="80" src="<?php echo get_post_meta($post->ID, "Thumbnail", true); ?>" /></a></div> <?php the_content_limit(700, ""); ?> <div style="display:block; text-align:center;"><b><a style="font-size:14px;" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title2('', '...', true, '70') ?> »</a></b></div> <?php endwhile; ?> </td> </tr> <!--End Added: Remove to get box 1 --> </table> </td> <td style="border-left:1px dotted #999999;" valign="top"><table width="100%" border="0" cellpadding="5" cellspacing="0"> <!-- <p>2</p> --> <!-- Added: Remove to get box 2--> <tr> <td valign="top" class="cell-t" style="border:1px solid #ccc;">برمجة الالعاب C++/SFML</td> </tr> <tr> <td class="cell-h" style="padding:8px;"> <?php $recent = new WP_Query("cat=25&showposts=2"); while($recent->have_posts()) : $recent->the_post();?> <div align="center" class="Small-Landscape-image"><a href="<?php the_permalink() ?>"><img style="padding:0px; margin:0px; border:0px;" height="80" width="80" src="<?php echo get_post_meta($post->ID, "Thumbnail", true); ?>" /></a></div> <?php the_content_limit(700, ""); ?> <div style="display:block; text-align:center;"><b><a style="font-size:14px;" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title2('', '...', true, '70') ?> »</a></b></div> <?php endwhile; ?> </td> </tr> |