473,395 Members | 1,537 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

CSS/Javascript

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


thanks,
Feb 9 '07 #1
15 2129
AricC
1,892 Expert 1GB
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
JohnD
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
AricC
1,892 Expert 1GB
What are you using to send the email?

Glad to help!
Aric
Feb 12 '07 #4
JohnD
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
AricC
1,892 Expert 1GB
Ok you want the info from the text box to be prefilled out in Outlook/(Default Email)?

Aric
Feb 12 '07 #6
JohnD
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
AricC
1,892 Expert 1GB
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
JohnD
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
AricC
1,892 Expert 1GB
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
JohnD
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
AricC
1,892 Expert 1GB
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
JohnD
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
AricC
1,892 Expert 1GB
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
JohnD
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
JohnD
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

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

Similar topics

0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.