Nov 22, 2009

Html Code Problem

free web hosting
Open Discussion > MODERATED AREA > The Internet > Web Design

Html Code Problem

Darker333
Hi! Im working on a little HTML project for myself and am teaching myself.. So I would like to know how to set roll over effects and a short guide on it!

What I mean is, I would like to know the code of making the mouse over on links make the links go red... Or if anyone can give me a way to do it on frontpage, because I cant find it!

Thnx in advance!

Comment/Reply (w/o sign-up)

solankyno1
I don't know how to do it in Frontpage because i never use that. But the thing which u want to done can easily be done with javascript. That is not very difficult to do. Just search on Google or find a simple javascript book if u don't know about javascript.

Comment/Reply (w/o sign-up)

nickmealey
ok, this is simple. If you just want a mouserollover for text. You do all this in css.

First, you need to put this into your css styles tags. If you don't know what this is, easy.

CODE
<style>
a {

     color: blue;

}


a:hover {

     color: red;
}


</style>



Now all the links will turn red when the mouse rolls over it. you can change the font, size, color, all of it. No this is the COMPLETE code in your HTML document.


CODE

<html>
<head>
<title>mouse rollovers</title>

<style>
a {

     color: blue;

}


a:hover {

     color: red;
}


</style>

</head>
<body>

<a href="index.html">Mouse rollover</a>
</body>


</html>





hope that helped

 

 

 


Comment/Reply (w/o sign-up)

Darker333
Oh, I didn't expect it to be that easy.. If its not to much trouble, how do you make it make a noise when the mouse goes over? I swear thats the final thing I need to know.. ( im sorry, im a starter HTML'ist )

Comment/Reply (w/o sign-up)

mizako
Please, do not add music or noises to Web pages!!!. You will damage people who navigates at work place. :-)

Comment/Reply (w/o sign-up)

Carsten
And please, no marquees and animations! Keep your site classy and simple.

What are your html learning sources? The first code snippet in nickmealy's post isn't really html code, it is css. I would recommend www.w3schools.com for a tutorial on (x)html and css. It is also a good site to use as reference when your coding your webpage.

Comment/Reply (w/o sign-up)

nickmealey
adding sound to a button is somtimes very GOOD. but, it can be destracting. like a little beep or somthing is good. It's kinda diffucult though. Way easier to do in Flash. biggrin.gif

Comment/Reply (w/o sign-up)

Tyssen
QUOTE(nickmealey @ Mar 26 2005, 01:14 AM)
adding sound to a button is somtimes very GOOD. but, it can be destracting. like a little beep or somthing is good. It's kinda diffucult though. Way easier to do in Flash. biggrin.gif
*



I think the only way to attach sounds to mouse clicks is by using Flash. You could create your whole navigation system as a Flash movie and place it on your page where you need it.

Comment/Reply (w/o sign-up)



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Similar Topics

Keywords : html, code, problem

  1. Displaying Html In Flash
    Using ActionScript (9)
  2. Website Structure
    PHP, MySQL, HTML, etc. (3)
    Hey guys, I am a very, VERY, curious person on finding out how things work on the computer if I find
    them interesting and I can't stop thinking about the thing until I find the answer. The sooner
    I find the answer, the less time I get a headache.

    So I was wondering how websites work. I mean how
    everything would be put together. Like how a game would be put together lin....
  3. Stop Your Html Codes From Being Stolen
    Stop your Html codes from being stolen on your HTML pages. (16)
    Hello people! Obviously a lot of people use these little scripts to stop you from right clicking on
    websites/HTML pages etc. I know many many people use near enough the same kind of coding as the one
    I just made. I decided not to put this in the Tutorials section because I know alot of other codes
    do exactly the same thing as this one I am going to be sharing with you! This code may be
    re-distributed if you wish. I have no copyright on it, but please put some kind of "Thanks for the
    no right-click script". Here it is: QUOTE oncontextmenu="return false" onselectsta....
  4. Flippingbook Html Edition
    download FREE version (6)
    You can create professional online albums/books with this simple and convenient tool: FlippingBook
    HTML Edition . The main attraction with this Javascript+SWF application is the page-flipping or
    page-turning feature, like we are used to do with physical publications like books, magazines, etc.
    http://www.page-flip.com/downloads.htm this free version has several limitation however: up to 10
    pages only, and you gotta retain the copyright link embedded in it. of course there is the paid
    edition too, in case you want to use it beyond the limitations of the free version.....
  5. Naming Web Page Files
    Which way you like- MyPage.html or my-page.html or my_page.html (9)
    Everybody talks about meta tags, keywords, good title names and how they can increase page rankings,
    etc. But I was wondering whether the page name itself holds any value in indexing. Yes, I am
    talking about the web page file names (some-thing.html) NOT the one which you put in title tags. I
    am going to express my views and want to know what you think is correct. I have seen pages named in
    various ways like these: 1) my_web_page.html 2) DoYouLikeMyPage.html 3) hey-see-my-webpage.html (I
    think this way is more appropriate) 4) this.is.a.page.html (somewhat confusing) ....
  6. What Is The Best Free Html Editor?
    (24)
    im looking for any kind that is free really.... i use windows but if you have one for a different
    platfor, go ahead and add it for reference for other users. If you have one for normal text editor
    and wysiwyg, add them both. i have been using notepad as my normal html editor but im looking for
    something different... at least so i can see the different colors of the codes. Right now i am
    downloading moxilla's seamonkey suite but im not sure how good it is... i will post a review if
    i ever use one. If you have used the html editor you suggest or you just heard abou....
  7. Html Problem
    (9)
    how to make my intro page in the middle not CENTER ....
  8. Flash Media Into Html/css Website
    does anyone know how to import a flash into a webpage with transparenc (3)
    Hi I need some help , Im designing this website for school studies However, I made a flash drop down
    menu, works perfectly, but you know how flash has a background when you export it in to a SWF file?
    For example my flash is width= 800, and height = 200 but my div box on my html page for my
    navigation is only 50 px my buttons is width of 50px and the rest of the content is the drop down
    animations i want to insert it into my navigation div box but i want to set the flash background to
    transparent so that when the drop down menu comes down it overlaps the text or whateva....
  9. A Twist On Basic Authentification
    html help (4)
    Alright, i am working on a website where a number of different users from different companies will
    be looking hooking into one website. What i want is to know how i can differentiate between the
    users based on the information passed by the webserver. I've been told to that information
    will be passed along html_user(and if i have a distinct user then i can just query the database with
    that info and get what i want) But how does this work? I am sorry i know this is cryptic i'm
    kind of searching to see if this strikes a bell with anyone. So to sum, many user....
  10. Has Anybody Tried Ms Expression Web Html Editor
    It's much better than Frontpage (3)
    I was desperate to finish a site I was designing after I lost my hard drive and my software. I
    downloaded Expression Web from the Microsoft site for a 3 month free trial, and guess what? It's
    surprisingly good! Nothing like that crappy frontpage, it's standards compliant and very good
    for writing CSS. Haven't heard anybody mention the program and wondering if anybody else has
    tried it out. It's free to try from the MS site.....
  11. Web Design Code
    you can leep the design in place with code (3)
    i recently posted a question to this forum about the reasons behin a webpage looking difrent inside
    of outher browsers. and then i found out that you use code to keep the design in place but the code
    you rite reads the browser and loads the page to the browsers specifications. but if like me you
    prefer not to code how then can you do this, i am aware that i would have to begin some codeing as
    i want to begin my own website but i dont no how i would lern this method of codeing that keeps this
    problem of messy web pages in difrent browsers at bay. can annyone help....
  12. Where Is There A Good Site To Learn Web Html?
    (20)
    im a noob when it comes to web html to design web sites, can some one tell me where to find a good
    website that has good tutorials on how to use web html?....
  13. How Do I Code A Design?
    (6)
    Okey, so I saw another topic here regarding how to make a design. I know how to do that, so that is
    no problem. But I have always had some problems on how to code a design. I am tired of that I always
    need to use some sort of program, drag&drop webhost (like piczo) or use a free design I found
    online. I have noticed that people need to "cut" the design in different parts, but I have never
    understood what way the do it. So I do not understand anything about this, and really need some
    help. I will be happy for all help I get. /smile.gif" style="vertical-align:middle"....
  14. Css List Vs Html List
    (1)
    I am currently learning the basics of web building and i am wondering if and when you should use
    html lists or css lists? The way i see it is if you are going to make a css list you are going to
    use that list setup later and just make a html list when u just need it once? did i just answer my
    own question? or is there a web standard where you should always use css for lists? idk.....
  15. Target Links To A Div Layer
    Is there such code that allows you to change ur link target so that it (22)
    Hey i need help I was wondering if there is a code that allows you to target ur link to a div
    layer.. lets say eg.. i got CODE Example i want that page to show in the div layer below
    on the same page. Is there a way i can do that? . im tryin to avoid using frames. thanks....
  16. Is There An Xbox Live Gamertag Code To Shw The Gamercard On A Website?
    The title says all! (1)
    Hi everyone, im looking for a code that will display a users xbox live gamercard. Ive seen one
    little widget but that was for the igoogle page ao its not suitable for what i want. Ideally I want
    one thats written with HTML or something like that so its easy for me to modify and such. What i
    want it to do is t have a URL in the code which the user can then insert their gamertag ID into and
    have the widget display their gamercard for all to see. if i ever use this code it will be on a
    money making site, hopefully, so something thats free to use even for commercial things ....
  17. Help! Php Or Just Html?
    i want to start buliding my website. which is better, php or basic htm (16)
    i try to start this topic in webhost category but it seems like i cant. i dont have the permission
    so i just post my topic here. im sorry mod.. i want to build a website which contains: - Links to
    videos - Informations - photos - flash i don't know if i should use php or just HTML. guys,
    what are your opinions..??....
  18. A Small Html Problem
    How to display foreign characters correctly when designing a site. (5)
    I was wondering how I could solve a small problem. I was told that some people see accented and
    umlauted letters (such as " é " and " ë ") as question marks (" ? ") on my website. I come across
    the same thing sometimes when looking at websites which use non-English characters. Funnily enough,
    the other day, I looked at a site and the apostrophy ( ' ) was also shown as a question mark.
    That is a very common character usually, I would think. I thought it had something to do with the
    character encoding settings, and let me also mention I use Mozilla Firefox as my brows....
  19. Psd --> Editable Html
    (4)
    Here's the deal. I am new at working with web objects in photoshop. I have CS3, and I created a
    really nice template. I'm told I have to do something with slicing. So I have the template, and
    it has images, buttons, and text on the buttons, and text fields, etc. How can I export this to HTML
    and images, and be able to open it up in dreamweaver in an editable web page? I've tried
    exporting to "web and devices" and exporting as HTML and Images, but when I open it up in
    dreamweaver, it looks right, but it is all images. Thanks....
  20. I Buy A Book "html,xhtml&css Sixth Edition" By Elizabeth Castro
    (2)
    After few years when I take a look of the web, I find that what I have learnt before is totally
    obsolescent, the standard is changed a lot. So I go to book store to look for a book to learn it
    from the beginning. I find there is too many books about web design. What I want is a book can tell
    me the situation about the popular using method. After looking for about 1 hour, I find this book
    "HTML,XHTML&CSS Sixth Edition" which was writen by Elizabeth Castro. I think this book is meet the
    needs of me. What I want is to get the information of the new standard of web desig....
  21. How Do I Learn Web Design?
    Not coding, i can code well already but how to make it look good? (51)
    Hi all. In my quest to become a website creator I have a big obstacle.. when it comes to design, eg
    making things look good i might as well be blind. Im useless! I can code to a decent standard in
    HTML PHP CSS MYSQL and JS but i am useless at making a nice design. So wha im after is advice on how
    to learn this, what i fear is a response of "you can *learn* how to design, you either can or you
    cant.". Its really important that im able to design a nice looking website because not many people
    have a concise set of drawings from which to code the website. Any advice and ....
  22. Forum Rpgs
    Is the PHP code convertable? (1)
    I use Proboards Forums, which doesn't allow PHP. I've been looking for a RPG forum game for
    Proboards. But sadly, they only come in PHP. So, I was wondering, is it possible to convert that PHP
    into HTML? Can Java Script be converted into HTML, too? Some of these codes are in java, as well.
    If you don't know, the RPGs have stats, classes, battling, shops, ect. I've seen it on many
    forums. I know that boards like InvisionFree abd PHPBB are great for this kind of thing, but I feel
    comfortable on Proboards. Plus, those boards confuse me. I know it's sil....
  23. Php Or Html?
    which do you use? (54)
    Well being a HTML its easy for me but what do people use the most? Is it HTML or PHP. It depends
    really on which you learnt first. So im gonna have a poll.Post HTML for Html and PHP for php and we
    will see which is more popular.....
  24. How To Use Html In Flash
    I need to import html into an iframe like box (1)
    As of this post I am trying to convert my current html website to a flash site. I use iframes in my
    html site and i am wondering if i can import html into a dynamic text box. I am wondering if i will
    need to redo the entire design in flash or if I can just import the html. If anything is confusing,
    please tell. Thanks in advance for the help /biggrin.gif" style="vertical-align:middle" emoid=":D"
    border="0" alt="biggrin.gif" />....
  25. Best Free Html/flash Templates
    (13)
    Before I began creating websites myself, i used templates. The best selection of free ones is here:
    TemplatesBox . Tons of free HTML and Flash templates (although you need to pay for the nicer ones),
    I'm not affiliated with them I just thought there were alot of threads looking for templates and
    this is a great resource.....
  26. View Souce Code
    do you know this site? (8)
    I have seen this site before.The site is simple.there are a box that you can put a url link then
    press enter you can see the code of the page (see everything include meta,comment...),even it is
    written in php,asp... If anyone know this site,please let me know(I have format my computer,so I
    lost it).thank you. ....
  27. Free Html Editor?
    (37)
    Hi, I'm looking for a free HTML editor. Not one of those new-fangled WYSIWYG ones... the only
    conditions are.... * Its free * It has syntax highlighting * It has a preview mode (like on
    dreamweaver or whatever). * It doesn't have any spy/adware! I figured that theres probably a
    great program out there somewhere, I just havent found it yet. I used to use one that I liked but
    since the Great Hard Drive Crash of 2004 it has disappeared from my PC, and I can't find
    anywhere to download it either.... Which (free) editor do you use? - Vacant....
  28. How To Make Pure Html Preloader?
    anyone know's the answer? (7)
    Hello all today i run out on this website and I found it very interesting... Anyone know how they
    did that page? and im specialy interested in that HTML preloader... ?? how to make one??....
  29. [Code] - Shout Box
    Invision Power Board v1.3.0g (4)
    Code for Invision Power Board v1.3.0g Just please in headers/footers in admin CODE // IF
    Shoutbox v1.0 - Leave Copyright Intact Wherever Used // Created For Invision Free // Author: Zero
    Tolerance © Game Zone | Evolution 2004 // Special Thanks To ffmasters.us For Hosting PHP Data +
    mySQL Allowance Site = "http://"+document.domain+"/" Site = location.href.substring(Site.length)
    if(Site.match('/')){ Site = Site.split('/') } thissite = Site ....
  30. Html Editors That Work With Asp Php
    wondering mind (10)
    Out of the many editors that i have seen not to many support asp or php those that do its more of
    converting so i was wonder which ones do have full blow asp and php capabilities on them?....

    1. Looking for html, code, problem
Similar
Displaying Html In Flash - Using ActionScript
Website Structure - PHP, MySQL, HTML, etc.
Stop Your Html Codes From Being Stolen - Stop your Html codes from being stolen on your HTML pages.
Flippingbook Html Edition - download FREE version
Naming Web Page Files - Which way you like- MyPage.html or my-page.html or my_page.html
What Is The Best Free Html Editor?
Html Problem
Flash Media Into Html/css Website - does anyone know how to import a flash into a webpage with transparenc
A Twist On Basic Authentification - html help
Has Anybody Tried Ms Expression Web Html Editor - It's much better than Frontpage
Web Design Code - you can leep the design in place with code
Where Is There A Good Site To Learn Web Html?
How Do I Code A Design?
Css List Vs Html List
Target Links To A Div Layer - Is there such code that allows you to change ur link target so that it
Is There An Xbox Live Gamertag Code To Shw The Gamercard On A Website? - The title says all!
Help! Php Or Just Html? - i want to start buliding my website. which is better, php or basic htm
A Small Html Problem - How to display foreign characters correctly when designing a site.
Psd --> Editable Html
I Buy A Book "html,xhtml&css Sixth Edition" By Elizabeth Castro
How Do I Learn Web Design? - Not coding, i can code well already but how to make it look good?
Forum Rpgs - Is the PHP code convertable?
Php Or Html? - which do you use?
How To Use Html In Flash - I need to import html into an iframe like box
Best Free Html/flash Templates
View Souce Code - do you know this site?
Free Html Editor?
How To Make Pure Html Preloader? - anyone know's the answer?
[Code] - Shout Box - Invision Power Board v1.3.0g
Html Editors That Work With Asp Php - wondering mind

Searching Video's for html, code, problem
See Also,
advertisement


Html Code Problem

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com