My Html Tutorial Folder (All inside in this thread)

Discussion in 'HTML & Website Design' started by Husameddin, Feb 18, 2008.

  1. #1
    Hello guys,
    Welcome to my private Html Tutorial
    :rolleyes:


    A Basic Marquee:

    Code:

    <marquee>TEXT HERE</marquee>
    Code (markup):
    Back and forth Marqee:

    Code:

    <marquee behavior=alternate>TEXT HERE</marquee>
    Code (markup):
    Marquee with a background color:

    Code:
    
    <marquee bgcolor=aqua>TEXT HERE</marquee>
    Code (markup):
    Specify up right left or down scrolling marquee:

    Code:

    <marquee direction=right, left,up,or down>TEXT HERE</marquee>
    Code (markup):
    Specify the speed of the marqee:

    Code:
    
    <marquee scrollamount=NUMBER>TEXT HERE</marquee>
    Code (markup):
    Marquee on the toolbar:

    Code:

    <SCRIPT LANGUAGE="JavaScript"> <!--// Use these to set up the message:var msg = "TEXT GOES HERE!"var delay = 30var startPos = 100// Don't touch these variables:var timerID = nullvar timerRunning = falsevar pos = 0// Crank it up!StartScrolling()function StartScrolling(){ // Make sure the clock is stopped StopTheClock() // Put in spaces to get "start" position for (var i = 0; i < startPos; i++) msg = " " + msg // Off we go... DoTheScroll()}function StopTheClock(){ if(timerRunning) clearTimeout(timerID) timerRunning = false}function DoTheScroll(){ if (pos < msg.length) self.status = msg.substring(pos, msg.length); else pos=-1; ++pos timerRunning = true timerID = self.setTimeout("DoTheScroll()", delay)}file://--></SCRIPT>
    Code (markup):
     
    Husameddin, Feb 18, 2008 IP
  2. Husameddin

    Husameddin Active Member

    Messages:
    248
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #2
    The Anchor Tag and the Href Attribute

    HTML uses the <a> (anchor) tag to create a link to another document.

    An anchor can point to any resource on the Web: an HTML page, an image, a sound file, a movie, etc.

    The syntax of creating an anchor:
    
    <a href="url">Text to be displayed</a>
    Code (markup):

    The <a> tag is used to create an anchor to link from, the href attribute is used to address the document to link to, and the words between the open and close of the anchor tag will be displayed as a hyperlink.

    This anchor defines a link to Proxi4Free:
    
    <a href="http://proxi4free.caridirectory.com/</a>
    Code (markup):
    The line above will look like this in a browser:
    Proxi4Free
     
    Husameddin, Feb 18, 2008 IP