Welcome our webmaster and SEO forum
Please enjoy the forum, contribute what you can, and wind up the Moderators!
Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: more html tricks

  1. #1
    crowebird is offline Senior Member
    Join Date
    Aug 2004
    Posts
    263

    Default more html tricks

    Here a some more html tricks I know

    //Add to favorites
    Code:
    <a href="javascript:window.external.AddFavorite(document.location, document.title)"><font type=Trebuchet MS" size=2 color="#000000">add to favorties</font></a>
    //Pop up windows
    Code:
    <head>
    <script>
    function myPopUp(){
    tehpop=window.open('http://www.wtflash.com/siteerror404','',CONFIG='HEIGHT=500,WIDTH=500,TOOLBAR=no,MENUBAR=no,SCROLLBARS=no,RESIZABLE=no,LOCATION=no,DIRECTORIES=no,STATUS=no')
    }
    </script>
    </head>
    
    <a href="javascript:myPopUp()"><font type="Trebuchet MS" size=2 color="#000000">link text</font></a>
    //Back in history
    Code:
    javascript:history.go(-1)
    //random banner
    Code:
    <SCRIPT LANGUAGE="JavaScript">
    <!--
    var ad = 0;
    ad = Math.floor(Math.random()*4);
    if (ad==0) {
    url="http://www.yoursite.com
    alt="alt text";
    banner="www.yoursite.com/locationOFbanner";
    width="425";
    height="65";
    }
    if (ad==1) {
    url="http://www.othersite.com
    alt="alt text";
    banner="www.othersite.com/locationOFbanner";
    width="425";
    height="65";
    }
    if (ad==2) {
    url="http://www.othersite.com
    alt="alt text";
    banner="www.othersite.com/locationOFbanner";
    width="425";
    height="65";
    }
    if (ad==3) {
    url="http://www.othersite.com
    alt="alt text";
    banner="www.othersite.com/locationOFbanner";
    width="425";
    height="65";
    }
    //If one of the banners was at your own site
    if (ad==0) {
    document.write('<a href=\"' + url + '\" target=\"_top\">');
    }
    if (ad>=1) {
    document.write('<a href=\"' + url + '\" target=\"_blank\">');
    }
    document.write('<img src=\"' + banner + '\" width=');
    document.write(width + ' height=' + height + ' ');
    document.write('alt=\"' + alt + '\" border=0></a>');
    // -->
    </SCRIPT>
    cheers,
    mike

  2. #2
    temi's Avatar
    temi is offline Facilitator
    Join Date
    Jun 2003
    Location
    London, England.
    Posts
    10,303

    Default

    Way to go Crowebird,
    Well done for the useful HTML tricks

    Temi

    * Comprehensive UK Web Directory List . eCommerce software UK
    * BossCart.com can build you a.
    Register your domain names at Velnet
    ::
    Add Eco sites to The Green Directory free of charge.
    Use LBS Free PHP Directory Script . Web Hosting Blog

  3. #3
    FiveseveN Guest

    Default

    Some basic HTML rules :
    DO NOT use <font> tags.
    DO NOT use nested tables.
    Sure, you may do as you like, but don't get mad when I'll say "I told you so!".

  4. #4
    Piotreksan Guest

    Default

    Nice!
    Thanks to you I'm learning.
    I'm looking foreward to seeing next tips.

  5. #5
    Paul_KY is offline Senior Member
    Join Date
    Aug 2004
    Posts
    1,285

    Default

    FiveseveN,

    "DO NOT use <font> tags.
    DO NOT use nested tables."

    Will you please explain, in full detail please, why?

    I'm truly curious.

    Thanks

    Paul
    "There's no such thing as impossible. It's a myth. Don't believe it."

  6. #6
    Eric Guest

    Default

    Fiveseven,

    Please take no offense, but that may not be good advice. Ive seen those tags all over the place with no problems. Can you explain your theory?

  7. #7
    Paul_KY is offline Senior Member
    Join Date
    Aug 2004
    Posts
    1,285

    Default

    Just because the tags are all over the place, doesn't mean they don't have disadvantages.

    Again, I'd humbly like to hear an explanation of why.

    Thanks

    Paul
    "There's no such thing as impossible. It's a myth. Don't believe it."

  8. #8
    FiveseveN Guest

    Default

    I'm not gonna give you the whole theory on web standards, but here's WHY :

    http://www.webdevtips.com/webdevtips...per/tips.shtml

    <font> tags are now being depreciated and are not guaranteed to be supported in future releases. You should consider making the move to style sheets as soon as possible.
    http://www.websitetips.com/html/
    http://www.kottke.org/03/08/standard...ically-correct

    And if you have a problem with that, why don't you take it up with the guys from http://w3.org/ ? (This means YOU, Eric!)

  9. #9
    Eric Guest

    Default

    Whoa Five seven! take a chill pill.

  10. #10
    Eric Guest

    Default

    And by the way Fiveseven, I didnt say I had a problem, I simply said I havent seen a reason why not. I asked you to explain your theory and you did so please stop trying to start conflict.

Page 1 of 3 123 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. A few tricks for Google:
    By ovi in forum General Search Engine Discussions
    Replies: 0
    Last Post: 09-12-2005, 05:50 PM
  2. PHP Tricks - PHP 5 clone in PHP4
    By ovi in forum General Webmaster Talk
    Replies: 0
    Last Post: 06-24-2005, 12:58 PM
  3. Tricks of the trade
    By Pentarix in forum Generating revenue from your website
    Replies: 8
    Last Post: 06-14-2005, 07:59 AM
  4. SEO tips and tricks
    By martian2k4 in forum General Search Engine Discussions
    Replies: 3
    Last Post: 04-07-2005, 06:56 PM
  5. 2 html tricks...
    By crowebird in forum General Webmaster Talk
    Replies: 2
    Last Post: 09-12-2004, 05:48 PM

Bookmarks

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124