![]() |
| ||||||||
|
|||||||
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
|
Active Warrior
War Room Member
Join Date: Aug 2007
Location: , , .
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
|
Does the code for my sign up form have to be inserted on the page I want it displayed or can I do something with an external style sheet? Thank you.
|
|
|
|
|
|
#2 |
|
HyperActive Warrior
War Room Member
Join Date: Jun 2007
Location: , , United Kingdom.
Posts: 163
Thanks: 9
Thanked 16 Times in 14 Posts
|
Style sheets deal with colour, display attributes, layout etc - not with page code so the answer is no.
Did you mean an external file? This could be relevant if the sign up form is generated by Javascript or php etc Anyway as the signup form code is a small number of lines it is often best to insert it into the page you want to display it on. |
|
|
|
|
|
|
|
|
#3 |
|
Advanced Warrior
War Room Member
Join Date: Jan 2006
Location: North Carolina
Posts: 856
Thanks: 67
Thanked 30 Times in 24 Posts
|
On the other hand, if this form will be on many pages of your site (and I'm going to assume a HTML website, as opposed to a WordPress type site) ... you could use a little php. I do this with headers, footers, navigation/menus - things that are on just about every page (if not all) of the site - so I have just one file to alter if need be, instead of doing the same change on every page.
You put, in your case, the code for the form in it's own file and call it something like: signup.html Then, where you want the form to show, you do: Code:
<?php include(signup.html)?> but regardless of which way you ultimately do it, just do what works best for you in the long run. |
|
|
|
|
|
|
|
|
#4 |
|
Active Warrior
War Room Member
Join Date: Aug 2007
Location: , , .
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
|
I have inserted the following code, that I received from icontact, after the start of my sidebar div, but I am not seeing a form when I preview page in browser. I am using dreamweaver cs4. Can anyone tell me why? Thanks.
<style type="text/css"> #SignUp .signupframe { border: 1px solid #060000; background: #405152; color: #ABECF5; font-family: Arial, Helvetica, sans-serif; } </style> <script type="text/javascript" src="http://app.icontact.com/icp/loadsignup.php/form.js?c=522222&l=27552&f=3590"></script> <a href="http://www.icontact.com" style="font-family: Arial, Helvetica, sans-serif;"><font size="2">Email Marketing by iContact</font></a> |
|
|
|
|
|
#5 |
|
Viral IMer
Join Date: Jul 2009
Posts: 55
Thanks: 4
Thanked 4 Times in 2 Posts
|
I tested your script by copying it into notepad, saving it as a html file, opened it in IE and it came up. It has a dark gray bg with light blue text and the words "email marketing by icontact" underneath the form box. Try creating a 1x1 table and put this in a table instead of the div. Hope this helps.
|
|
|
|
|
|
#6 |
|
Active Warrior
War Room Member
Join Date: Aug 2007
Location: , , .
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
|
Isn't that a css style? Don't I need to place the style in the head of the document for embedded or in an external style sheet, not in a table or div? Which portion actually goes where I want it to show in the body?
|
|
|
|
![]() |
|
| Tags |
| form, inserting, sign |
| Thread Tools | |
|
|
![]() |