情况:
我有一个使用 javascript 滑块的网页 [来自 scriptiny dot com 的小滑块]。
我在最后一张幻灯片上创建了一个带有 jquery 验证和 php 验证的联系表单。
一切正常,除了:
点击提交后,网页显示第一张幻灯片。
不确定是否热以使其粘在接触“幻灯片”上。
站点导航是使用如下字符串完成的:
onclick="slideshow.pos(0)
onclick="slideshow.pos(1)
onclick="slideshow.pos(2)
onclick="slideshow.pos(3)
onclick="slideshow.pos(4)
我需要联系人“slide”留在“slideshow.pos(4)”上。
代码:
//If there is no error, send the email
if(!isset($hasError)){
$emailTo = 'myemail@gmail.com'; //Put your own email address here
$body = "Name: $name \n\nEmail: $email \n\nSubject: $subject \n\nComments:\n $comments";
$headers = 'From: My Site <'.$emailTo.'>' . "\r\n" . 'Reply-To: ' . $email;
mail($emailTo, $subject, $body, $headers);
$emailSent = true;
}
我怎样才能做到这一点?理想情况下,我可以在发送电子邮件后运行一些 javascript,使页面的刷新将用户发送到“slideshow.pos(4)”?
任何帮助,将不胜感激,
标记