View Full Version : Contact Us Text Button
DFirth
19-Sep-2003, 03:10 PM
I am using the Curves theme and want to add a [Contact Us] text button to the brochure navigation bar.
Can someone please explain how this can be done
Many thanks
David
Menar
19-Sep-2003, 04:01 PM
Hi,
I am using the Curves theme and want to add a [Contact Us] text button to the brochure navigation bar.
What you need to do is embed the following code into the Act_BroucherPrimary template after the variable NETQUOTEVAR:HEADERGUIDE; the template can be accessed by going to Advance | Template manager | Boucher Tab and clicking on the 'Primary' button (if in graphical view click on the 'change view' button)
<span class="actxxsmall">[</span> <b><A HREF="mailto:YourName@YourCompanyEmail.com" TARGET="_self" onMouseOver="SwapImage('nav_mail','mail2.gif')" onMouseOut="RestoreImage()"><span class="actxxsmall">Contact Us</span></A></b> <span class="actxxsmall">]</span>
OR
If any nav buttons that are not specified in 'Design | Options | Navigation' or in the 'image' fields for brochure pages would need to be hard-coded into your overall layout template.
You would need to use code similar to the following to do mouse-overs...
code:--------------------------------------------------------------------------------
<a href="url_to_link_to" target="_blank" onMouseOver="SwapImage('image_name','highlight_image.gif')" onMouseOut="RestoreImage()">
<img src="image.gif" name="image_name" border="0">
</a>
--------------------------------------------------------------------------------
Replace 'image.gif' and 'highlight_image.gif' with the filenames of your new images. Where it says 'image_name' - each of your new buttons would have to have it's own unique image name.
Hope this helps
DFirth
21-Sep-2003, 03:05 PM
Menar
Thanks for your prompt reply - this is just what I wanted. However, is it possible to specify a variable instead of hard coding the email address ?
Regards
David
cdicken
22-Sep-2003, 04:31 PM
You could create this as a custom property.
Go to 'Advanced | Custom Properties' and create a new custom property called 'Email'.
Then go to 'Design | Options | Site Defaults' and set a value for 'Email' of whatever email address you want.
You can then use CUSTOMVAR:EMAIL wherever you want the email address to appear.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.