By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,766 Members | 1,261 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,766 IT Pros & Developers. It's quick & easy.

CSS/Javascript

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


thanks,
Feb 9 '07 #1
Share this Question
Share on Google+
15 Replies


Expert 100+
P: 1,892
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="Javascript">
Some Javascript Here
</script>
<body>
Your Content Goes Here
</body>
</html>
[/html]
Or by links:
Expand|Select|Wrap|Line Numbers
  1. <link rel="stylesheet" type="text/css" href="styles/your_stylesheet.css" />
  2. <script src="your_javascript.js"></script>
  3.  
Or Javascript in the body and inline CSS
Expand|Select|Wrap|Line Numbers
  1. <body>
  2. <script type="text/javascript">
  3. document.write("Some Javascript")
  4. </script>
  5. </body>
  6.  
  7. INLINE CSS:
  8. <div style="background-color: #333;margin-left: 3px">
  9. Hello World
  10. </div>
  11.  

HTH,
Aric
Feb 10 '07 #2

P: 27
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
Feb 11 '07 #3

Expert 100+
P: 1,892
What are you using to send the email?

Glad to help!
Aric
Feb 12 '07 #4

P: 27
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>
Feb 12 '07 #5

Expert 100+
P: 1,892
Ok you want the info from the text box to be prefilled out in Outlook/(Default Email)?

Aric
Feb 12 '07 #6

P: 27
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
Feb 12 '07 #7

Expert 100+
P: 1,892
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
Feb 12 '07 #8

P: 27
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
Feb 12 '07 #9

Expert 100+
P: 1,892
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
Feb 13 '07 #10

P: 27
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
Feb 13 '07 #11

Expert 100+
P: 1,892
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
Feb 13 '07 #12

P: 27
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
Feb 14 '07 #13

Expert 100+
P: 1,892
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
Feb 15 '07 #14

P: 27
Aric,


I found a site, dailyrazon.com, that offers web hosting for $3.95. Also, there is another site (www.localnet.com) 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
Feb 16 '07 #15

P: 27
Aric,

Is the following plan sufficient to meet my needs:

6.5 GB of storage
100 E-mail Address
48 GB of Bandwith
Frontpage Extensions
CGI,PHP and Perl


Thanks,

JohnD
Feb 21 '07 #16

Post your reply

Sign in to post your reply or Sign up for a free account.