4 replies [Last post]
pixelfide
Offline
newbie
Last seen: 9 years 23 weeks ago
Timezone: GMT+2
Joined: 2012-06-14
Posts: 3
Points: 4

i think it is html or css code i need help in, sorry if i am posting on a wrong forum... noob here...
so i am writing body {background-image:url("ftp://[email protected]/public_html/bilder/THS_2.jpg");} in my index.html but when i go to my webpage does it says: server(http://www.pixeltest.netne.net/):21 needs username and password. i think it is beacuse that i need to acces the server the picture is hosted on (the: ftp)and to acces that you need the password and username... but how can i direct to the picture so i dont need to write username adn password. this is what i am gettign up: help.png i just want to do so i every one can acces my webpage without the password and username...

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 5 weeks 2 days ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5343
Points: 2964

Hi pixelfideAccess it via

Hi pixelfide
Access it via http not ftp
http://www.pixeltest.netne.net/bilder/THS_2.jpg

pixelfide
Offline
newbie
Last seen: 9 years 23 weeks ago
Timezone: GMT+2
Joined: 2012-06-14
Posts: 3
Points: 4

still dosnt work

this is the code, but it still dosnt worke... when i go to my webpage now does it just have the normal html look... the css is gone.. what is wrong in this code? i have changed the directory of the css to http:// insted of ftp:// so is should finde the css file shouldnt it? can take a picture how the server is builded up in mapps etc.

<html>
    <head>
         <link rel="stylesheet" type="text/css" href="http://pixeltest.netne.net/public_html/css/index_css.css"/>
         <title> Welcome to raining_pixelblock</title>
    </head>
     <body>
        <p><h1> Raining Pixelblock</h1></p>
        <p><b><i> Welcome to Raining pixelblock, the site about gaming</i></b> 
this site is going to have info (and some times events.)
but for the most it is my info site about my youtube videos.
if you want to ask about somting just send a message to me on youtube.</p>
        <h2> extra pages </h2>
<ul>
   <li><a href="about.html">About</a></li>
   <li><a href="http://www.youtube.com/user/pixelfide?feature=results_main">youtube_channel</a></li>
   <li><a href="video_list.html">video_list</a></li>
   <li><a href="contact.html">contact_me</a></li>
   <li><a href="music.html">music</a></li>
</ul>
<ol>
   <li><a href="http://counter.pixeltest.netne.net/">visitor counter</a></li>
   <li><a href="http://chat.pixeltest.netne.net">chat</a></li>
   <li><a href="photo_gallery.html">photo_gallery(not finished)
   <li><a href="ads.html">get a webpage you to</a></ul>
</a></li>
</ol>
<div id="cse" style="width: 100%;">Loading</div>
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript"> 
  google.load('search', '1', {language : 'no', style : google.loader.themes.V2_DEFAULT});
  google.setOnLoadCallback(function() {
    var customSearchOptions = {};  var customSearchControl = new google.search.CustomSearchControl(
      '003574698323652340713:tstqx7rk46g', customSearchOptions);
    customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
    customSearchControl.draw('cse');
  }, true);
</script>
</body>
</html>

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 5 weeks 2 days ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5343
Points: 2964

The link to your stylesheet

The link to your stylesheet is wrong.
remove the public_html so it is http://pixeltest.netne.net/css/index_css.css or /css/index_css.css

pixelfide
Offline
newbie
Last seen: 9 years 23 weeks ago
Timezone: GMT+2
Joined: 2012-06-14
Posts: 3
Points: 4

Thanks

Thanks, my Webpage work again Big smile