PDA

View Full Version : Newbie - very simple button question


isabelle
12-01-2009, 09:17 AM
Hi

I'm a total newbie to Macromedia Dreamweaver (I'm using version 8).
I have one question, how do I add a link to a button. I'm using a template and I like the buttons that are on there, but I would like to redirect it to another page. How do I do this (Please view the site here: www.salessa.co.za (http://www.salessa.co.za)) and see the grey Login and Search buttons.

thanks a ton
hope I can find some help here
x, isabelle 8-)

gentleone
12-01-2009, 09:58 AM
You can change or add the links in this section of your code:
<!-- This hold the navigation tabs -->
<div id="tabholder">
<div id="tabs8">
<ul>
<!-- CSS Tabs -->
<li id="current">
<a href="#"><span>Home</span></a> </li>
<li><a href="aboutus.html"><span>About Us </span></a></li>
<li><a href="/shop/php5z3"><span>Shop Online </span></a></li>
<li><a href="/shop/php5z3"><span>Specials</span></a></li>
<li><a href="contactus.html"><span>Contact Us </span></a></li>
<li><a href="/shop/php5z3"><span>Silicone Range </span></a></li>
<li><a href="/shop/php5z3"><span>Icing Molds </span></a></li>
</ul>
</div>
</div>
<!-- End of the tabs holder -->

I'm not sure if this is where you after, but this is your 'About Us' link and the text that appears on the button.
<a href="aboutus.html"><span>About Us </span></a>
The <a href=""></a> is the link and in between the <span> tags is the text.

isabelle
12-01-2009, 11:05 AM
hi, thanks for the reply. No, I wanted to know how to link the buttons (see the light grey buttons "Search" and "Login") just below the Home tabs.

The code shows like this:



<!-- The search box and the button -->
<input type="text" name="searchbox" id="search" size="15" />
<input type="submit" name="Submit" value="search" />
<!-- Lots of whitespace -->
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;
<!-- Here's your login controls -->
Username
<input type="text" name="loginbox" id="tflogin" size="15" />
Password
<input type="password" name="loginbox" id="tfpassword" size="15" />
<input type="submit" name="login" value="Login" />
</div>
</div>
<!-- End of the login controls holder -->

Corrosive
12-01-2009, 11:31 AM
Are you asking how to make your login and search facilities work?

isabelle
12-01-2009, 11:57 AM
yes that would be great . But for the time being, I would just like it to redirect to a link (/shop.php) on click.

Corrosive
12-01-2009, 12:29 PM
I'm not sure you can do this as 'input' is a form element and so it would be expecting to produce an action for a form (such as submitting it or resetting it). I might be wrong on this mind you as I've never tried to do it.

Might be an idea to replace these with HTML links for the time being.