This may be a newbie question but then again guess what guys? I'm somewhat of a newbie.

On my website I'm just coming along slowly, I don't really have time to put a few solid hours into getting it done, I put a few here and a few there. I was wondering if anyone knew the direct path on dreamweaver to putting a (contact us) button so that when you click on it, it goes to outlook with my email address.

Hopefully you can understand through the jumble above.

Oh and another question for the savy! Any idea how to put the time and day on the website? that is current and active? as you see i tried to put it on the home page and every page there of but no luck!

www.sarasotanetworking.com (domain name will change when i'm finished)
My family races boats.
Leave responses if you'd like. Good and Bad. The only buttons that are working are the (home, schedule, contact us, biographies, oct 23, sept 12, friendly bet)
Thanks!

Dani AI

Generated

Short practical follow-up that builds on what and said: the Dreamweaver envelope tool creates a mail link (mailto), which is fine for a quick "Contact us" button — but mailto simply hands off to the visitor's default mail program (not guaranteed to be Outlook). If you need a consistent, spam‑safe, and testable solution for event signups or scheduling, use a server‑side contact form (PHP, ASP.NET, or a hosted form service) instead of exposing a plain email address.

A mailto that pre-fills subject/body looks like this:

<a href="mailto:you@example.com?subject=Website%20Inquiry&body=Hello%2C%0A%0AI%20have%20a%20question.">Contact Us</a>

URL‑encode spaces (%20) and newlines (%0A). To make it look like a button, style the anchor with CSS or use a button that navigates to the same mailto URL.

For a live date/time on the page (client clock that updates every second), use a small JavaScript snippet so the visitor always sees current local time:

<div id="clock"></div>

<script>
function updateClock() {
  var now = new Date();
  document.getElementById('clock').textContent = now.toLocaleString();
}
updateClock();
setInterval(updateClock, 1000);
</script>

Notes and quick troubleshooting: if clicking your link does nothing, check the OS/browser default mail handler — browsers won't force Outlook unless it's the registered handler. If you tried server code (PHP) and it didn't work, ensure the file has a .php extension and the server supports PHP. To avoid spam, prefer a contact form or use simple obfuscation; to show one authoritative time (race schedule), render time server‑side so every visitor sees the same reference time.

Recommended Answers

All 3 Replies

Member Avatar for Member #2466

that's just a simple

[email="address@domain.com"]mailto:address@domain.com[/email]

If you try to specify mailers...you'll take away from your users. Remember that not everyone uses IE and Outlook...some use Mozilla and Outlook Express or Evolution. Counting on other programs being used and design your page with these in mind.

but what is the format that i use for dreamweaver or whats the coding for html when making a button like the contact us button on my website

so that they can email me?

In dreamweaver, just highlight your text which says 'contact us', then go to the 'common' tab at the top of your dreamweaver menu bar.
click on the second button in which looks like an envelope. This is the 'email link' button. when you click it, it will open a box where you have to fill in two lines of info. (this is sometimes already filled in for you). but if it hasnt, the first box says 'text' so just type 'contact us' in there.
the second box say 'email'. type your email address in there.
When you preview your site in explorer you should find that when you click it, a new email message should appear addressed to you.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.