CSS/Javascript

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JohnD
    New Member
    • Sep 2006
    • 27

    CSS/Javascript

    How do I incorperate CSS and Javascript into the same page?


    thanks,
  • AricC
    Recognized Expert Top Contributor
    • Oct 2006
    • 1885

    #2
    You can write both directly within the HTML page or link them in the <head> section.
    With HTML:
    [html]
    STRICT DOCTYPE
    <html>
    <head>
    <title>CSS TEST</title>
    <style type="text/css">
    body
    {
    background-color: #000000;
    }
    </style>
    <script language="Javas cript">
    Some Javascript Here
    </script>
    <body>
    Your Content Goes Here
    </body>
    </html>
    [/html]
    Or by links:
    Code:
    <link rel="stylesheet" type="text/css" href="styles/your_stylesheet.css" />
    <script src="your_javascript.js"></script>
    Or Javascript in the body and inline CSS
    Code:
    <body>
    <script type="text/javascript">
    document.write("Some Javascript")
    </script>
    </body>
    
    INLINE CSS:
    <div style="background-color: #333;margin-left: 3px">
    Hello World
    </div>

    HTH,
    Aric

    Comment

    • JohnD
      New Member
      • Sep 2006
      • 27

      #3
      Aric,

      Thanks for the feedback. By the way, I have a textarea box above a submit button and I want users, after they have entered text, to be able to click the button and have their information sent to the e-mail address. However, when I test it out, I end up getting a e-mail pop up box in which I have to re-enter all the information I have just entered into the textarea box. Is there a way I can prevent this?


      thanks

      Comment

      • AricC
        Recognized Expert Top Contributor
        • Oct 2006
        • 1885

        #4
        What are you using to send the email?

        Glad to help!
        Aric

        Comment

        • JohnD
          New Member
          • Sep 2006
          • 27

          #5
          I am not sure what you mean, so I have posted my code below.

          thanks,

          <p align="center"> Enter problem below:</p>
          <form action="mailto: someone@hotmail .com" method="post" enctype="text/plain">
          <p align="center"> <textarea rows="10" cols="40">
          </textarea></p>

          <p align="center"> <input type="submit" value="SUBMIT"> </p>

          Comment

          • AricC
            Recognized Expert Top Contributor
            • Oct 2006
            • 1885

            #6
            Ok you want the info from the text box to be prefilled out in Outlook/(Default Email)?

            Aric

            Comment

            • JohnD
              New Member
              • Sep 2006
              • 27

              #7
              I want the information in the textarea box to be directly sent to the e-mail address without the outlook window popping up.


              thanks,

              JohnD

              Comment

              • AricC
                Recognized Expert Top Contributor
                • Oct 2006
                • 1885

                #8
                You are going to need some server side scripting to do this are you able to run PHP or ASP etc.. I have a PHP email script if you like.



                Aric

                Comment

                • JohnD
                  New Member
                  • Sep 2006
                  • 27

                  #9
                  Although I have not tried, I should be able to from my laptop. Sure, I could use it.

                  I am a recent business graduate and I am looking to combine my interest in technolgy with my degree. What skills in terms of web development, would I need to make myself employable.

                  I thought being a moderator that you might be able to provide me with some insight.

                  thanks,

                  JohnD

                  Comment

                  • AricC
                    Recognized Expert Top Contributor
                    • Oct 2006
                    • 1885

                    #10
                    Originally posted by JohnD
                    I thought being a moderator that you might be able to provide me with some insight.
                    Sure, what kind of info are you looking for? Lets get some basics about this web page you have. Where is the page hosted/located? What kind of web development are you looking to do?


                    Aric

                    Comment

                    • JohnD
                      New Member
                      • Sep 2006
                      • 27

                      #11
                      I am still searching for a host, ideally I would like to have a free host ,but I am not sure if reputable ones exist. In terms of web development, I am not sure what's in demand, the only the only code I am familiar with is HTML/CSS and that is on a basic level.

                      Alll I want for now, is for users to enter their problems in the textarea box and have them sent directly to my e-mail. I am trying to start a laptop solutions business, it would be repair, but I can't afford the inventory.


                      thanks,

                      JohnD

                      Comment

                      • AricC
                        Recognized Expert Top Contributor
                        • Oct 2006
                        • 1885

                        #12
                        Originally posted by JohnD
                        I am still searching for a host, ideally I would like to have a free host ,but I am not sure if reputable ones exist. In terms of web development, I am not sure what's in demand, the only the only code I am familiar with is HTML/CSS and that is on a basic level.

                        Alll I want for now, is for users to enter their problems in the textarea box and have them sent directly to my e-mail. I am trying to start a laptop solutions business, it would be repair, but I can't afford the inventory.


                        thanks,

                        JohnD
                        John,
                        If you are planning on starting a business you definetly need to have your site hosted somewhere professionally, most if not all free sites contain ad's, pop-ups, or links back to their site. You can get a site hosted with a reputable company very cheaply if need be I can suggest some places that would help. Or what you can do is get a freebie place which supports PHP I would think most do get your page the way you want and then move it to a pro hosting company. You're not going to be able to send email directly without some server side scripting. I'm off today (snow) I will see if I can dig up some decent freebies.

                        Aric

                        Comment

                        • JohnD
                          New Member
                          • Sep 2006
                          • 27

                          #13
                          Aric,

                          I open to any suggestions you might have, I am here to learn. By the way, what is the process for becoming a moderator or admistrator on a site like this?


                          Thanks,


                          JohnD

                          Comment

                          • AricC
                            Recognized Expert Top Contributor
                            • Oct 2006
                            • 1885

                            #14
                            Well what do you want to do try to find a freebie and get your page set up or get something now. You can get a professional hosting package for under $5 a month.

                            Aric

                            Comment

                            • JohnD
                              New Member
                              • Sep 2006
                              • 27

                              #15
                              Aric,


                              I found a site, dailyrazon.com, that offers web hosting for $3.95. Also, there is another site (www.localnet.c om) that offers web hosting for $6.95. Local net is pay as you go, I would prefer to this site since it is pay as you go, however I will to whatever what is best for my business. If you have time, I would like to get your feedback on both sites.


                              thanks,

                              John

                              Comment

                              Working...