More HTML

Vom PC-Ratgeber wurde Windows XP erkannt

 Ihr PC ist bereit für eine zweiminütig zu konfigurierende
   Leitungsverbesserung. Um zu starten klicken Sie bitte auf 'Weiter'
  Mehr Info

Applying a background to the button

To finalize the distinction between a regular form button and the HTML 4.0 button, we must force the new button to get rid of its ugly gray background. This can be accomplished with the little touch of CSS (Cascading style sheets), such as the following rules:

  • background-color:whatever_color;

  • background-image:url(whatever_image);

  • font: bold 12px Arial;

Lets begin the transformation, shall we?

<button style="background-color:lightgreen">Save our planet!</button>

<button style="background-image:url(b6.gif)"><b>Under the Sea</b></button>

The background of the button can even be transparent, by specifying the background color in the style declaration to "transparent":

<button style="background-color:transparent">Transparent background!</button>

Controlling the width/height of the button

By default, the dimensions of the button is automatically set to the dimensions required to accommodate the content inside, such as an image. There will often be times when you want to manually control this dimension to fit your design. By using another CSS declaration, you can. To control the width/height of the button, use the following style declaration:

  • style="width:whatever_width;height:whatever_height"

Lets create a series of perfectly rectangular buttons, then, using the above knowledge:

<button style="width:100;height:100">H</button>
<button style="width:100;height:100">i</button>
<button style="width:100;height:100">!</button>

Example- Simulating browser buttons using the <button> tag:

Look closely at the above rectangular buttons...what do they remind you of? Well, they remind me of the default buttons that appear on the toolbar of your browser. Both of them are rectangular, and gray in color. In this fun example, we will create html 4.0 buttons that simulate the default browser buttons.

<button style="width:65;height:65" onClick="history.go(-1)"><b>Back</b></button>
<button style="width:65;height:65" onClick="history.go(1)"><b>Forward</b></button>
<button style="width:65;height:65" onClick="window.location='http://www.javascriptkit.com'"><b>Home</b></button>
<button style="width:65;height:65" onClick="window.location.reload()"><b>Reload</b></button>
<button style="width:65;height:65" onClick="window.close()"><b>Close</b></button>

HTML:Element:marquee

From MDC

[edit] HTML Marquee Element

<marquee>...</marquee> - This element is used to insert a scrolling area of text.

[edit] Attributes

behavior
Sets how the text is scrolled within the marquee. Possible values are scroll, slide and alternate. If no value is specified, the default value is scroll.
bgcolor
Sets the background color through color name or hexadecimal value.
direction
Sets the direction of the scrolling within the marquee. Possible values are left, right, up and down. If no value is specified, the default value is left.
height
Sets the height in pixels or percentage value.
hspace (1.9a)
Sets the horizontal margin
loop (1.9a)
Sets the number of times the marquee will scroll. If no value is specified, the default value is −1, which means the marquee will scroll continuously.
scrollamount
Sets the amount of scrolling at each interval in pixels. The default value is 6.
scrolldelay
Sets the interval between each scroll movement in milliseconds. The default value is 85. Note that any value smaller than 60 is ignored and the value 60 is used instead, unless truespeed is specified.
truespeed (1.9a)
Determines whether scrolldelay values lower than 60 are ignored or not. Possible values are true or false. The default value is false
vspace (1.9a)
Sets the vertical margin in pixels or percentage value.
width
Sets the width in pixels or percentage value.

[edit] Event handlers

onbounce
Fires when the marquee has reached the end of its scroll position. It can only fire when the behavior attribute is set to alternate.
onfinish
Fires when the marquee has finished the amount of scrolling that is set by the loop attribute. It can only fire when the loop attribute is set to some number that is greater than 0.
onstart
Fires when the marquee starts scrolling.

[edit] Methods

start
Starts scrolling of the marquee.
stop
Stops scrolling of the marquee.

[edit] Examples

<marquee>This text will scroll from right to left</marquee>
<marquee direction="up">This text will scroll from bottom to top</marquee>
<marquee direction="down" width="250" height="200"
behavior="alternate" style="border:1px solid black">
<marquee behavior="alternate">
This text will bounce
</marquee>
</marquee>

 

[edit] Notes

The marquee tag is originally an IE invention.

The marquee tag is not valid according to the HTML or XHTML specifications. Page authors concerned with validation should not use this tag.

The marquee tag is implemented in Mozilla by using an XBL binding:
 
Member Login| Logout
 
East African Standard Time

Username
Password
Showbiz - Soulja Boy Tell'em - "Kiss Me Thru The Phone"
 
Exclusive
 

Adventure
 
Adventure with us today. Find out more on travel agents and other facilities around East Africa from here. Find out the most fascinating places that you can not miss to visit while in East Africa. Get all this from richcomputersolutions - your favorite website. Remember if you want to join this website, suggest a user name and password and send them to richymany2k@gmail.com or click on sin-up for more. Joining this website is a 100% free. Remember that we offer the best in repair of computers, scanners , printers. On top of that, reach us for quality photography, internet connections .graphic designing, website designing, coomputer training and many mor services. You are welcome to the sole source of information in East Africa.
Advertise here
 
 
There have been 41420 visitors (173656 hits) To this Website today
I welcome you all to his website, for all the best you need and enjoy all the benefits as a member. This website website is still under construction but always hope to find more here with Rich Computer Solutions. Always come back for more events. This website was created for free with Own-Free-Website.com. Would you also like to have your own website?
Sign up for free