Hey, does anyone hbe a source to find out how to create a menu like the one on squarespace.com?
Every time I save my html file, close it and open it back up, Dreamweaver keeps adding > (greater than signs) at the end of the closing html tag. So every time I have to go and delete them I looks like this
</ html>>>>>>>>
Anyone know how to fix this? Thanks
Who else agrees that the sites on http://awwwards.com are impractical as hell, but still are awesome?
Uncaught TypeError: Cannot read property 'style' of null parallax.js:87 220Uncaught TypeError: Cannot read property 'style' of null parallax.js:79 295 Uncaught TypeError: Cannot read property 'style' of null parallax.js:79 moveDiv parallax.js:79 getMouseXY parallax.js:69 229Uncaught TypeError: Cannot read property 'style' of null parallax.js:79 17 Uncaught TypeError: Cannot read property 'style' of null parallax.js:79 moveDiv parallax.js:79 getMouseXY
Here is my parallax.js code
var verticalPosition;
var verticalPositionBefore;
var windowWidth = 960;
var windowHeight;
// Detect if the browser is IE or not.
// If it is not IE, we assume that the browser is NS.
var IE = document.all?true:false
// If NS -- that is, !IE -- then set up for mouse capture
if (!IE) document.captureEvents(Event.MOUSEMOVE)
// Set-up to use getMouseXY function onMouseMove
document.onmousemove = getMouseXY;
// Temporary variables to hold mouse x-y pos.s
var tempX = 0;
var tempY = 0;
var objectArray = new Array();
fillObjectArray();
positionDivs();
function fillObjectArray()
{
var ssplashesDiv = document.getElementById("ssplashes");
var ssplashesX = 312;
var ssplashesY = 33;
var ssplashesFactor = 0.05;
var ssplashesArray = new Array();
ssplashesArray.push(ssplashesDiv);
objectArray.push(ssplashesArray);
var msplashesDiv = document.getElementById("msplashes");
var msplashesX = 312;
var msplashesY = 33;
var msplashesFactor = 0.05;
var msplashesArray = new Array();
msplashesArray.push(msplashesDiv);
objectArray.push(msplashesArray);
var bsplashesDiv = document.getElementById("bsplashes");
var bsplashesX = 312;
var bsplashesY = 33;
var bsplashesFactor = 0.05;
var bsplashesArray = new Array();
bsplashesArray.push(bsplashesDiv);
objectArray.push(bsplashesArray);
}
// Main function to retrieve mouse x-y pos.s
function getMouseXY(e)
{
if (IE) { // grab the x-y pos.s if browser is IE
tempX = event.clientX + document.body.scrollLeft
tempY = event.clientY + document.body.scrollTop
} else { // grab the x-y pos.s if browser is NS
tempX = e.pageX
tempY = e.pageY
}
// catch possible negative values in NS4
if (tempX < 0){tempX = 0}
if (tempY < 0){tempY = 0}
moveDiv(tempX);
return true
}
function moveDiv(tempX)
{
for (var i=0;i<objectArray.length;i++)
{
var yourDivPositionX = objectArray[i][3] * (0.5 * windowWidth - tempX) + objectArray[i][1];
objectArray[i][0].style.left = yourDivPositionX + 'px';
}
}
function positionDivs()
{
for (var i=0;i<objectArray.length;i++)
{
objectArray[i][0].style.left = objectArray[i][1] + "px";
objectArray[i][0].style.top = objectArray[i][2] + "px";
}
}
The site is on my localhost so unfortunately I can’t provide a link.
Thanks
I ran into this shoe website. http://community.saucony.com/kinvara3/ Does anyone know where I can find a tutorial to that explains how to create this style of website? Full screen, parallax , etc.
Here’s an example. http://www.dtelepathy.com/ Look on the right side of the page (the plus sign). When you click it it comes out.
Anyone know what this would be called or where I can find a snippet somewhere?
I’m currently working on this website -> www.tcmuniversal.com.
I noticed that the thumbnails of nextgen gallery on the home page of the results are being squished small on ie8 . Anyone have an idea why and how I can fix this?
Also, the website is pulling up a default mobile version when I look at it on my iphone. How do I get rid of this completely?
Thanks
OriginalEXE said
Line where there is:$message = strip_tags(stripslashes($_POST['message']));change to:$message = strip_tags(stripslashes($_POST['message'] . ' Phone: ' . $_POST['phone']));
Thanks man this did it 
I’m trying to add another field (the phone field) to the already made form. Here is my form code ->
<form method="post" action="../the-best-anti-aging-face-cream/contact.php" id="contactform">
<label>Your Name<span style="#d00">*</span></label>
<input id="contactname" name="name" required>
<label>Phone Number</label>
<input id="contactphone" name="phone">
<label>Your Email<span style="#d00">*</span></label>
<input id="contactemail" name="email" type="email" required>
<label>Your Message</label>
<textarea name="message"></textarea>
<label>What is <span id="captcha">???</span> (Anti-spam)<span style="#d00">*</span></label>
<input id="humanornot" name="humanornot" placeholder="Type Here" required>
<input name="s" id="s" value="blank" type="hidden">
<input id="submitcontactform" name="submit" type="submit" value="Submit" class="red-btn">
</form>
Here is my contact.php code ->
<?php
/*
* ShapingRain Contact Form Handler
* (c) 2012 ShapingRain, All rights reserved!
* http://www.shapingrain.com
*/
function get_settings($in)
{
if (is_file($in))
return include $in;
return false;
}
function get_real_ip()
{
if (isset($_SERVER["HTTP_CLIENT_IP"])) {
return $_SERVER["HTTP_CLIENT_IP"];
} elseif (isset($_SERVER["HTTP_X_FORWARDED_FOR"])) {
return $_SERVER["HTTP_X_FORWARDED_FOR"];
} elseif (isset($_SERVER["HTTP_X_FORWARDED"])) {
return $_SERVER["HTTP_X_FORWARDED"];
} elseif (isset($_SERVER["HTTP_FORWARDED_FOR"])) {
return $_SERVER["HTTP_FORWARDED_FOR"];
} elseif (isset($_SERVER["HTTP_FORWARDED"])) {
return $_SERVER["HTTP_FORWARDED"];
} else {
return $_SERVER["REMOTE_ADDR"];
}
}
$settings = get_settings("site.settings.php");
if (!isset($_POST['s'])) {
@$action = trim(strtolower($_GET['action']));
if ($action == "captcha") // generate basic captcha challenge
{
$i1 = intval(mt_rand(0, 6));
$i2 = intval(mt_rand(0, 6));
$i3 = intval(mt_rand(0, 3));
$io = intval(mt_rand(0, 1)) + 1;
if ($io == 1) $o = "+"; else $o = "-";
if ($i1 < $i2) $i1 = $i2 + $i3;
if ($o == "+") $r = $i1 + $i2; else $r = $i1 - $i2;
$captcha['i1'] = $i1;
$captcha['i2'] = $i2;
$captcha['o'] = $o;
$captcha['s'] = str_rot13(base64_encode($i1 . "," . $i2 . "," . $o . "," . $r . "," . get_real_ip())); // Let's add some security by obscurity
header('Cache-Control: no-cache, must-revalidate');
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Content-type: application/json');
echo json_encode($captcha);
exit();
}
} else {
$messages = Array();
// basic validation
if (trim(@$_POST['name']) == "") $messages[] = "You need to enter your name.";
if (trim(@$_POST['phone']) == "") $messages[] = "You need to enter your phone number.";
if (trim(@$_POST['email']) == "") $messages[] = "You need to enter a valid email address.";
if (trim(@$_POST['message']) == "") $messages[] = "You cannot send an empty message.";
if (trim(@$_POST['humanornot']) == "") $messages[] = "You must verify that you are not a robot.";
if (trim(@$_POST['s']) == "") $messages[] = "Invalid request.";
if (count($messages) == 0) {
@$s = explode(",", base64_decode(str_rot13(trim($_POST['s']))));
@$i1 = $s[0];
@$i2 = $s[1];
@$o = $s[2];
@$r = $s[3];
@$ip = $s[4];
if ($o == "+") {
$r_calc = $i1 + $i2;
} else {
$r_calc = $i1 - $i2;
}
if ($r_calc != @$_POST['humanornot'] || $r_calc != $r || get_real_ip() != trim($ip)) {
$messages[] = "Sorry, you did not enter the correct answer to the captcha challenge. Please try again.";
}
if (count($messages) == 0) {
$headers = array();
$headers[] = "MIME-Version: 1.0";
$headers[] = "Content-type: text/plain; charset=iso-8859-1";
$headers[] = "From: " . trim(@$_POST['name']) . " <" . trim(@$_POST['email']) . ">";
$headers[] = "X-Mailer: ShapingRain FormMailer on PHP/" . phpversion();
$recipient = $settings['form_email'];
$subject = "Message sent through your contact form.";
$message = strip_tags(stripslashes($_POST['message']));
@mail($recipient, $subject, $message, implode("\r\n", $headers));
$status = 200;
} else {
$status = 404;
}
$response = Array();
$response['status'] = $status;
$response['messages'] = $messages;
header('Cache-Control: no-cache, must-revalidate');
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Content-type: application/json');
echo json_encode($response);
exit();
}
}
What would I add to the contact.php code to show the form field in the message section of the email?
dmsumon said
ace2296 saidIt is all up to authors… Your idea is just a bad idea a very very bad idea.
I think TF should provide their own conversion service(s). PSD to HTML5 , HTML5 to Wordpress etc. Just a thought![]()
Huh? It would just be like any other conversion service. I think if a designer has a design(s) that he or she simply doesn’t have time for than the service would work out great.
