这是我的网页网址
在此页面中,如果我们单击"登录"按钮,它将显示一个黑色背景的弹出屏幕.但是如果我们缩小页面,那么它会减小背景颜色的大小.但是如果我们缩小的话,我想覆盖整个屏幕的背景.我在页面中使用了以下代码.
.black_overlay{
display: none;
position: absolute;
top: 0%;
left: 0%;
width: 100%;
height: 2000%;
background-color: black;
z-index:1001;
-moz-opacity: 0.8;
opacity:.80;
filter: alpha(opacity=80);
}
Run Code Online (Sandbox Code Playgroud)
但在测试页面中,以下代码用于覆盖整个背景.它工作正常.
<style type="text/css">
/*give the body height:100% so that its child
elements can have percentage heights*/
body{ height:100% }
/*this is what we want the div to look like*/
div.fullscreen{
display:block;
/*set the div in the top-left corner of the screen*/
position:absolute;
top:0;
left:0;
background-color: black;
/*set the width and height to 100% of the …Run Code Online (Sandbox Code Playgroud) 在我的编码中,我使用javascript函数动态创建div及其属性
这是我对html的编码
<p >Poll Choice</p>
<input type=hidden name="choicecount" id="choicecount" value="1">
<input type=file name="choiceimg1" value ="Select" onchange="readURL(this)" style="display:none;">
<script language="JavaScript" type="text/javascript">
function HandFileButtonClick()
{
document.addpoll.choiceimg1.click();
}
function HandleFileButtonClick(val)
{
var ss=val.name;
document.forms["addpoll"]
var n=ss.split("choiceimgs");
document.forms["addpoll"]["choiceimg" + n[1]].click();
}
</script>
<div>
<div style="width:400px;height:85px;">
<div id="imgbg" style="float:left;width: 110px;height: 80px;text-align: center;border: 1px solid #CCC;">
<input type="button" onclick="HandFileButtonClick();" value="Browse" id="firstremove" style="margin-top: 30px;" class="addmultiple">
</div>
<div style="float:right;margin-top: 30px;">
<input type=text name="choicename1" id="firstremove2">
<input type="button" value="Remove" id="firstremove3" onclick="document.getElementById('imgbg').style.display='none';document.getElementById('firstremove').style.display='none';document.getElementById('viewimg1').style.display='none';document.getElementById('firstremove2').style.display='none';document.getElementById('firstremove3').style.display='none';" style="color: red; font-size: 12px; border: 0px; background: none; text-decoration: …Run Code Online (Sandbox Code Playgroud) 在我的页面中,我在twitter登录中使用标题位置进行重定向.但它在我的服务器上工作正常.但是在将文件上传到其他服务器后它无法正常工作
header("Location: login-twitter.php");
当试图查看页面中的错误并使用下面的代码时,我看到以下警告消息.
error_reporting(E_ALL); ini_set('display_errors', 'On');
Run Code Online (Sandbox Code Playgroud)
警告:无法修改标头信息 - 已在/vhosts/www/samplehosts/mysite.com/samplefolder/signin中发送的标头(在/vhosts/www/samplehosts/mysite.com/samplefolder/header.php:258处开始输出).第24行的PHP
重定向不适用于我网站中的任何页面.任何人都可以帮我解决这个问题
signin.php
if (array_key_exists("login", $_GET)) {
$oauth_provider = $_GET['oauth_provider'];
if ($oauth_provider == 'twitter') {
error_reporting(E_ALL); ini_set('display_errors', 'On');
header("Location: login-twitter.php");
}
}
<li class="twitter">
<a class="twitter_login" href="?login&oauth_provider=twitter" rel="nofollow">
<img src="images/twitter.png" width="206" height="33" >
</a>
</li>
Run Code Online (Sandbox Code Playgroud)
但是点击了twitter按钮后,它只显示了标题网址
http://mysite.com/?login&oauth_provider=twitter
而不是重定向到Twitter登录页面.
我尝试在我的系统中安装Joomla 3.下载并解压缩文件后,我将文件放在localhost文件夹中wamp/www/jesite/myfiles.之后我运行jesite文件夹并显示索引页面,然后在配置,数据库和概述部分中给出相应的详细信息.
然后我按下安装按钮后显示一个带有四个部分的窗口
首先,它完成备份旧数据库,然后显示创建数据库表的进度条.但之后它显示了很长一段时间的进度条,当我在DB中检查它创建了78个表.但它只显示进度条后.
我不知道我做错了什么.任何人都可以帮我解决这个问题.
<!DOCTYPE html>
<html>
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<style type="text/css">
#slider { margin: 10px; }
</style>
<input type="text" value="" id="rateToPost"/>
<script type="text/javascript">
var my = document.getElementById("rateToPost").onchange();
alert(my);
</script>
<div style="width:75px;height:48px;">
<div style="width: 5px;margin-left: 10px;">1</div>
<div style="width: 5px;margin-left: 38px;margin-top: -10px;">2</div>
<div style="width: 5px;margin-left: 70px;margin-top: -13px;">3</div>
<div style="width: 5px;margin-left: 98px;margin-top: -12px;">4</div>
<div style="width: 5px;margin-left: 124px;margin-top: -12px;">5</div>
</div>
<script>
$(document).ready(function() {
$("#slider").slider({
range: "min",
value: 2,
min: 1,
max: 5,
//this gets a live reading of the value and …Run Code Online (Sandbox Code Playgroud) 在我的页面中,我使用了查找给定IP地址的Geolocation的功能.这将返回带有zipcode的特定位置的结果.
但这个邮政编码并不准确.我从编码和真实位置获得的zipcodes的差异大约超过200英里.我使用了ip2location网站的以下代码.
require_once('ip2location.class.php');
$ip = new ip2location;
$ip->open('./databases/IP-COUNTRY-REGION-CITY-LATITUDE-LONGITUDE-ZIPCODE-TIMEZONE-ISP-DOMAIN-NETSPEED-AREACODE-WEATHER-MOBILE-SAMPLE.BIN');
$record = $ip->getAll('50.178.183.243');
echo '<b>IP Address:</b> ' . $record->ipAddress . '<br>';
echo '<b>IP Number:</b> ' . $record->ipNumber . '<br>';
echo '<b>Country Short:</b> ' . $record->countryShort . '<br>';
echo '<b>Country Long:</b> ' . $record->countryLong . '<br>';
echo '<b>Region:</b> ' . $record->region . '<br>';
echo '<b>City:</b> ' . $record->city . '<br>';
echo '<b>ISP/Organisation:</b> ' . $record->isp . '<br>';
echo '<b>Latitude:</b> ' . $record->latitude . '<br>';
echo '<b>Longitude:</b> ' . $record->longitude . '<br>';
echo '<b>Domain:</b> …Run Code Online (Sandbox Code Playgroud) javascript ×4
php ×2
css ×1
header ×1
html ×1
installation ×1
ip-address ×1
joomla ×1
jquery ×1
map ×1
styles ×1
twitter ×1
zipcode ×1