Creating a centered fixed header or footer menu on Unbounce
Follow the full instructions here: https://getsatisfaction.com/unbounce/topics/creating_a_fixed_header_menu
<script>
//Fixed Menu (Header or footer) v1.3.1Be sure to first change your forms confirmation to 'Goto another webpage' and set a default fallback URL
Drop this script into your javascript box. Set the placement to 'before body end tag'
<script>
$("#gender").live('change', function() {
switch ($(this).val()) {| <script> | |
| $(function() { | |
| $('.lp-pom-image a, .lp-pom-text a').not('a[href^=#]').each( function() { | |
| this.href = this.href + window.location.search; | |
| }); | |
| }); | |
| </script> |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| To be placed on form confirmation/thank you page in head | |
| <script> | |
| if ( window.self !== window.parent ) window.parent.location.href = window.location.href; | |
| </script> |
| <script type="text/javascript"> | |
| var _ubaq = _ubaq || []; | |
| _ubaq.push(['trackGoal', 'convert']); | |
| (function() { | |
| function UnbounceAnalytics(commands) { | |
| this.trackingUrl = | |
| ('https:' == document.location.protocol ? 'https://' : 'http://') + | |
| "t.unbounce.com/trk"+"?"; | |
| this.commands = commands; |
| <script> | |
| // unbounce-horizontal-forms 7453328 | |
| function HorizontalForm(a,b){var c=this;this.spacing=a,this.submitPlacement=b,this.$=window.lp.jQuery,this.$(function(){c.$form=c.$(".lp-pom-form").eq(0),c.$fields=c.$("div.lp-pom-form-field"),c.$button=c.$(".lp-pom-form .lp-pom-button").eq(0),"manual"!==c.submitPlacement&&(c.$fields=c.$fields.add(c.$button)),c.doLayout()}),this.$(window).resize(function(){c.doLayout()})}HorizontalForm.prototype.doLayout=function(){for(var a=this.$fields.eq(0).width()+this.spacing,b=this.$fields.eq(0).height(),c=this.$form.parent().width()-this.$form.position().left,d=0,e=0,f=0;f<this.$fields.length;f++){field=this.$fields.eq(f),e=0===f?e:e+a,e+a>c&&(d=0===f?d:d+b+this.spacing,e=0,b=field.height());var g=d;if(field.is(".lp-pom-button"))if("newline"===this.submitPlacement)g=d+b+spacing,e=0;else{g=d+19;var h=this.$form.find(":text").eq(0).height();field.css("height",h-1+"px")}else this.$(field).children("label").length||(g=d+19);field.css({top:g+"px",left:e+"px"}),field.height( |
Youtube Video Background for Unbounce pages - Minified
See full instructions here: https://getsatisfaction.com/unbounce/topics/how-can-i-create-a-youtube-video-background
<script>
// Youtube Video Background for Unbounce. V1.2
<script>
window.module.lp.form.data.validationRules['field_name'].digits = true;
</script>Replace 'field_name' with the ID of your form field you want to add this validation to.