Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: <HTML>please help me with</HTML>

  1. #11
    Senior Member Info Tech Geek's Avatar
    Join Date
    Jan 2003
    Location
    Vernon, CT
    Posts
    828
    1)-How do I get 2 sets of texts next to each other????

    I would just use a table and remove the border or set it to zero so it is not visable.


    2)-How do i hide my links target???

    I would advise agaist this. It is not good to hide the source. Some people like to know where they are going.

  2. #12
    Senior Member
    Join Date
    Mar 2002
    Posts
    502
    NO NO NO NO!!!! DO NOT USE TABLES, THEY ARE THE WRONG WAY TO HANDLE THIS!

    Tables will be a bitch to edit when you got complicated layouts, and will provide unnescecery (excuse my english) code for the user to download. Split your site's content from it's layout, by using HTML (only some <div>'s,

    's and <span>'s will be required) for the content, and CSS for any layout thingies.

    Tables should ONLY be used when you want to create a... uuhmm... table to present data, NOT for layout purposes. Please, any web developer that reads this and still uses tables to define their layout, stop it. Also drop those numerous <font> tags that are in your code.

    Let me give a web developer the 2 main reasons to use CSS instead of HTML to define the look of their site.


    Seperating Style From Content
    If you are used to HTML, you noticed that HTML can define both the style, and content of your site, by using <font>, <table> or similar tags. With these tags, and some artistic sense, you are able to create a quite good looking site. CSS seperates the style from the content. Why is this good?
    - The stylish capabilities of HTML are quite limited.
    - By keeping the style in a seperate file, you are able to edit your entire site's style, by editing just one file.


    Improved Usability
    If you started to use CSS, your site would automaticly be more usable. By removing all nasty BODY-attributes and font tags from your HTML pages, and moving these into a single external style sheet, your HTML pages will turn smaller in size, and the style sheet would only need to be downloaded once (as further requests would later be taken from the users cache), and thus your site would load faster.

    Also, compared to other nice web technologies (Javascript, ActiveX, etc) your users will not loose any functionality if their browser does not support CSS (which is extremely rare these days). They will just get plain text, your raw content.

    Also remember that alot of <font>/<body>/<etc> tags/attributes are browser-specific, so when using CSS, your site will automaticly be more easily read by browsers, and search engine spiders. When using Aural functionality in your CSS files, your site will even be able to talk to blind users.


    Make your websites accessable by anyone, not just the people who have the correct browser. Use CSS.
    Work faster, cut on traffic costs, and make your sites prettier. Use CSS.

    More info on using standard compliant (X)HTML/CSS:
    http://www.w3schools.com


    To answer your second question, it would be rather useless to do that, as any user checking out your source can get the true destination of a link. Also, it's missleading. I hate sites that make me check out the source to find out where I'm gonna go.


    Hope this helped.

    Frank.
    Bleh.

  3. #13
    GreekGoddess
    Guest
    EINzTEIN...an elaboration to valhallen's response:

    When it comes to gif creation, you have several choices, here are some free ones, including GIMP:
    http://www.freebyte.com/graphicprograms/#editors

    Or, if you want to invest some money into some really good programs, not that I have a problem with GIMP, it's the best free program out there:

    Paint Shop Pro
    http://www.jasc.com/products/paintshoppro/
    Photoshop
    http://www.adobe.com/products/photoshop/main.html
    Fireworks
    http://www.macromedia.com/software/fireworks/

    Any of these programs will allow you to open up a .bmp extension image and resave it to .jpg without use of a converter. If you still insist on using a converter...try these links:

    http://jansfreeware.com/jfgraphics.htm#formati
    http://www.programmersheaven.com/zon...ageconversion/
    http://www.programmersheaven.com/zone16/cat670/


    Originally posted here by Info Tech Geek
    2)-How do i hide my links target???

    I would advise agaist this. It is not good to hide the source. Some people like to know where they are going.
    I disagree. I talked about some of this in my tutorial on image theft. People are just as likely to steal your links as well as images and you can never be too careful. In fact there's a lot of valid reasons to hide your link targets.

    A good tutorial is this:
    http://html.ozbytes.net.au/programme...iddenLink.html

    And I like the example they give with the MP3...because you'd be surprised at the people out there that will try to steal your bandwidth and link directly to your song. It's dumb, but it's done.

    The implications of this script is tremendous, because now if you have things you want people to download and don't want anybody linking to it directly you can stop them in their tracks. The only draw back is that if the JavaScript isn't enabled on the user's browser then the links won't work.
    Now, this script didn't work for me, because I have a popup killer, which is a problem you'll face, but there are a lot of similar scripts out there that do the same thing a little differently...so you'll have to do some research...try http://www.hotscripts.com for more.

    Understand too, that this isn't a foolproof way. The only foolproof way to hide something is to not put it on the net at all.

    Hope this helps...

  4. #14
    Senior Member
    Join Date
    Mar 2002
    Posts
    502
    Originally posted here by GreekGoddess
    I disagree. I talked about some of this in my tutorial on image theft. People are just as likely to steal your links as well as images and you can never be too careful. In fact there's a lot of valid reasons to hide your link targets.

    A good tutorial is this:
    http://html.ozbytes.net.au/programme...iddenLink.html

    And I like the example they give with the MP3...because you'd be surprised at the people out there that will try to steal your bandwidth and link directly to your song. It's dumb, but it's done.
    The script given there doesn't help you at all. It still enables anyone to view the source, and get the page manually, like every other client-based protection. There is NO client-side way to TRUELY protect any HTML links to image/javascript/css files.

    The only way to protect the location of a file, is to have it parsed through another file. For instance, the php script below will load an image from the (by .htaccess protected) image/ directory, and display it to the browser.
    PHP Code:
    <?php

    // The image to get
    $image = (isset($_GET['img_id']) ? ($_GET['img_id']) : (0);

    // Get the image
    $image = @implode('', @file('./images/' $_GET['img_id'] . '.gif');

    // Display the image
    echo ($image);

    ?>
    Some image types require a header to be sent before the echo, but any PHP developer will get the general idea. This can also be combined with the session-handling functions you use in your normal pages, so only users with a registered session (making sure they are watching a valid page) can view the image.

    The above can also be used as a base to create a function that provides download (I.E. zip files, etc) popups. Why would you 'hide' the link client-based when you can just create 1 server-side PHP script that can protect all your publicly viewable files? You could even serve your entire site through your index.php page if you want, creating urls like http://www.yoursite.com/index.php?page=22. You could also do some neat tricks with apache, to convert the above url to: http://www.yoursite.com/page/22 without creating directories.

    Originally posted here by GreekGoddess
    Understand too, that this isn't a foolproof way. The only foolproof way to hide something is to not put it on the net at all.
    LOL, the protecting of links/images/files through Javascript or HTML is kinda outdated, and easily avoidable. Use a server side language, or don't even bother trying at all, IMHO.
    Bleh.

  5. #15
    GreekGoddess
    Guest
    The problem with this though, as reading his other posts, is that he isn't looking for a PHP host, just simplistic hosting, so the idea is right, but the language isn't suitable. Besides, one should learn to walk before running headlong into an unknown language. If you can't make a dropdown menu in javascript, or format a page in tables or CSS...you're definitely NOT going to be jumping into PHP.

  6. #16
    yeah i aint no pro thats for sure, and i am working my way up the languages. what i have done so far is(and this aint all web, and are mostly introduction):HTML,C,C++,PASCAl(yup)
    so i'm starting with java in a few dayz, php (i dont even know what the hell that stands for , but i know its a web language or something, where you can use a database online or something( dont bother explaining-> i guess i'm too DUMB to understand,2 this moment anyways.

    So i was just amused by the way that you can munipilate the status bar, that why i wanted to know how i could do that,I HATE it aswell when sites hide their DESTINATION but it could help when you want to give the user more info of where he is headed(I know the ALT text is better, bahhh is experimenting the best way to learn.)

    Well thank you all for responding.

    have a NICE day
    CHEERS
    ******

  7. #17
    Senior Member
    Join Date
    Mar 2002
    Posts
    502
    Originally posted here by GreekGoddess
    The problem with this though, as reading his other posts, is that he isn't looking for a PHP host, just simplistic hosting, so the idea is right, but the language isn't suitable. Besides, one should learn to walk before running headlong into an unknown language. If you can't make a dropdown menu in javascript, or format a page in tables or CSS...you're definitely NOT going to be jumping into PHP.
    Yeah, I kinda got excited there...
    Bleh.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •