導航:首頁 > 編程語言 > echojsscroll

echojsscroll

發布時間:2022-09-19 08:41:38

javaScript實現屏幕上下滑動的效果

可以考慮使用swiper插件

㈡ PHP如何新窗口打開另一個頁面

<ahref='****.php'target='_blank'>點擊</a>

㈢ 關於頁面引用兩個版本JQ庫,一個高版本低版本,如何兼容【求解】

你可以試一下 jquery別名,(在第一個jquery引入代碼下面,寫下面這行代碼,然後在這行代碼下面再引入其他版本的jquery。) 第一次引入的jquery,調用的時候寫 $j('#id')。 JQuery.
noConflict()這個是專門解決沖突的,望採納。

js">var$j=JQuery.noConflict();

㈣ 彈窗代碼

1、最基本的彈出窗口代碼】
其實代碼非常簡單:

<SCRIPT LANGUAGE="javascript">
<!--
window.open (page.html)
-->
</SCRIPT>
因為著是一段javascripts代碼,所以它們應該放在<SCRIPT LANGUAGE="javascript">標簽和</script>之間。<!-- 和 -->是對一些版本低的瀏覽器起作用,在這些老瀏覽器中不會將標簽中的代碼作為文本顯示出來。要養成這個好習慣啊。
window.open (page.html) 用於控制彈出新的窗口page.html,如果page.html不與主窗口在同一路徑下,前面應寫明路徑,絕對路徑(http://)和相對路徑(../)均可。用單引號和雙引號都可以,只是不要混用。
這一段代碼可以加入HTML的任意位置,<head>和</head>之間可以,<body>間</body>也可以,越前越早執行,尤其是頁面代碼長,又想使頁面早點彈出就盡量往前放。

【2、經過設置後的彈出窗口】

下面再說一說彈出窗口的設置。只要再往上面的代碼中加一點東西就可以了。
我們來定製這個彈出的窗口的外觀,尺寸大小,彈出的位置以適應該頁面的具體情況。
<SCRIPT LANGUAGE="javascript">
<!--
window.open (page.html, newwindow, height=100, width=400, top=0,left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no)
file://寫成一行
-->
</SCRIPT>
參數解釋:
<SCRIPT LANGUAGE="javascript"> js腳本開始;
window.open 彈出新窗口的命令;
page.html 彈出窗口的文件名;
newwindow 彈出窗口的名字(不是文件名),非必須,可用空代替;
height=100 窗口高度;
width=400 窗口寬度;
top=0 窗口距離屏幕上方的象素值;
left=0 窗口距離屏幕左側的象素值;
toolbar=no 是否顯示工具欄,yes為顯示;
menubar,scrollbars 表示菜單欄和滾動欄。
resizable=no 是否允許改變窗口大小,yes為允許;
location=no 是否顯示地址欄,yes為允許;
status=no 是否顯示狀態欄內的信息(通常是文件已經打開),yes為允許;
</SCRIPT> js腳本結束

【3、用函數控制彈出窗口】

下面是一個完整的代碼。
<html>
<head>
<script LANGUAGE="JavaScript">
<!--
function openwin() { window.open ("page.html", "newwindow", "height=100, width=400, toolbar=
no, menubar=no, scrollbars=no, resizable=no, location=no, status=no")
file://寫成一行
}
file://-->
</script>
</head>
<body onload="openwin()">
...任意的頁面內容...
</body>
</html>
這里定義了一個函數openwin(),函數內容就是打開一個窗口。在調用它之前沒有任何用途。
怎麼調用呢?
方法一:<body onload="openwin()"> 瀏覽器讀頁面時彈出窗口;
方法二:<body onunload="openwin()"> 瀏覽器離開頁面時彈出窗口;
方法三:用一個連接調用:
<a href="#" onclick="openwin()">打開一個窗口</a>
注意:使用的「#」是虛連接。
方法四:用一個按鈕調用:
<input type="button" onclick="openwin()" value="打開窗口">

【4、同時彈出2個窗口】

對源代碼稍微改動一下:
<script LANGUAGE="JavaScript">
<!--
function openwin()
{ window.open ("page.html", "newwindow", "height=100, width=100, top=0,left=0,toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no")
file://寫成一行
window.open ("page2.html", "newwindow2", "height=100, width=100, top=100, left=100,toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no")
file://寫成一行
}
file://-->
</script>
為避免彈出的2個窗口覆蓋,用top和left控制一下彈出的位置不要相互覆蓋即可。最後用上面說過的四種方法調用即可。

注意:2個窗口的name(newwindows和newwindow2)不要相同,或者乾脆全部為空。OK?

【5、主窗口打開文件1.htm,同時彈出小窗口page.html】

如下代碼加入主窗口<head>區:
<script language="javascript">
<!--
function openwin()
{window.open("page.html","","width=200,height=200")
}
file://-->
</script>

㈤ js或者jQuery實現一個方法,執行該方法就觸發按鈕F11被按下。

<script type="text/javascript">
function omiga_window(){
window.open("full_window.htm","","fullscreen,scrollbars")
}
</script>
這個跟瀏覽器有關,只有IE6,winxp sp1以下才支持,這是出於安全的角度考慮的,因為只要js能打開全屏,就能做出用戶永遠也關不掉的全屏廣告,或者模仿和QQ系統提示一模一樣的提示框,現代的瀏覽器為了安全起見,不允許彈出這樣的窗口。

㈥ php怎麼調用js代碼

<script type="text/javascript">
function test()
{
var t1=3;
t1 = t1+2;
alert(t1);
//return t1;
}
</script>

<?php
echo "<script type='text/javascript'>test();</script>";
?>

㈦ 如何調試hta sd

需要輸入以下代碼 調試hta sd

只要簡單的用.hta為擴展名保存HTML頁面就行了

下面的一個標準的HTML應用程序
<HTML>
<HEAD>
<TITLE>HTA Demo</TITLE>
<HTA:APPLICATION ID=〃oHTA〃
APPLICATIONNAME=〃myApp〃
BORDER=〃thin〃
BORDERSTYLE=〃normal〃
CAPTION=〃yes〃
ICON=〃filename.ico〃
MAXIMIZEBUTTON=〃yes〃
MINIMIZEBUTTON=〃yes〃
SHOWINTASKBAR=〃no〃
INGLEINSTANCE=〃no〃
SYSMENU=〃yes〃
VERSION=〃1.0〃
WINDOWSTATE=〃normal〃>
</HEAD>
<BODY SCROLL=〃no〃>
<H1>HELLO, WORLD!</H1>
</BODY>
</HTML>

它多了HTA:APPLICATION標簽。其實就是這個標簽提供了一系列面向應用程序的功能。

它的各種屬性:

APPLICATIONNAME屬性(applicationName)
此屬性為設置HTA的名稱。

BORDER屬性(border)
此屬性為設置為HTA的窗口邊框類型,默認值為 thick。
它可以設為 thick 指定窗口為粗邊框
dialog window 指定窗口為對話框
none 指定窗口無邊框
thin 指定窗口為窄邊框

BORDERSTYLE屬性(borderStyle)
此屬性為設置HTA窗口的邊框格式,默認值為 normal。
它可以設為
normal 普通邊框格式
complex 凹凸格式組合邊框
raised 凸出的3D邊框
static 3D邊框格式
sunken 凹進的3D邊框

CAPTION屬性(caption)
此屬性為設置HTA窗口是否顯示標題欄或標題,默認值為 yes。

ICON屬性(icon)
此屬性為設置應用程序的圖標。

MAXIMIZEBUTTON屬性(maximizeButton)
此屬性為設置是否在HTA窗口中顯示最大化按鈕,默認值為 yes。

MINIMIZEBUTTON屬性(minimizeButton)
此屬性為設置是否在HTA窗口中顯示最小化按鈕,默認值為 yes。

SHOWINTASKBAR屬性(showInTaskBar)
此屬性為設置是否在任務欄中顯示此應用程序,默認值為 yes。

SINGLEINSTANCE屬性(singleInstance)
此屬性為設置是否此應用程序同時只能運行一次。次屬性以APPLICATIONNAME屬性作為標識,默認值為 no。

SYSMENU屬性(sysMenu)
此屬性為設置是否在HTA窗口中顯示系統菜單,默認值為 yes。

VERSION屬性(version)
此屬性為設置應用程序的版本,默認值為空。

WINDOWSTATE屬性(windowState)
此屬性為設置HTA窗口的初始大小,默認值為 normal。
它可以設為 normal 默認大小
minmize 最小化
maximize 最大化

以上括弧中的是在腳本引用的屬性。在腳本中以上屬性皆為只讀屬性。此外,在腳本中還可以使用commandLine屬性來檢索應用程序啟動時的參數。
在HTA中還可以使用html中的絕大多數標簽、腳本等。

將用了fso的頁面作成hta,雙擊運行時就沒有安全警告的
var Controller = WScript.CreateObject("WSHController");
var RemoteScript = Controller.CreateScript("test.js", "remoteserver");
WScript.ConnectObject(RemoteScript, "remote_");
RemoteScript.Execute();

while (RemoteScript.Status != 2) {
WScript.Sleep(100);
}

WScript.DisconnectObject(RemoteScript);

function remote_Error()
{
var theError = RemoteScript.Error;
WScript.Echo("Error " + theError.Number + " - Line: " + theError.Line + ", Char: " + theError.Character + "\nDescription: " + theError.Description);
WScript.Quit(-1);

網站 PHP加密文件 破解,200分送上

breadcrumb.php---------------------->
<?php
$post = $posts[0];
;echo ' ';if (is_home()) {;echo ' You are here: <a href="';echo get_settings('home');;echo '">';bloginfo('name');;echo '</a>
';}elseif(is_category()) {;echo ' You are here: <a href="';echo get_settings('home');;echo '">Home</a> > ';single_cat_title();;echo ' ';}elseif (is_search()) {;echo ' You are here: <a href="';echo get_settings('home');;echo '">Home</a> > ';echo $s;;echo ' ';}elseif(is_tag()) {;echo ' You are here: <a href="';echo get_settings('home');;echo '">Home</a> > ';single_tag_title();;echo ' ';}elseif (is_day()) {;echo ' You are here: <a href="';echo get_settings('home');;echo '">Home</a> >';the_time('Y, F jS');;echo ' ';}elseif (is_month()) {;echo ' You are here: <a href="';echo get_settings('home');;echo '">Home</a> >';the_time('Y, F');;echo ' ';}elseif (is_year()) {;echo ' You are here: <a href="';echo get_settings('home');;echo '">Home</a> >';the_time('Y');;echo ' ';}elseif (is_author()) {;echo ' You are here: <a href="';echo get_settings('home');;echo '">Home</a> >
';}elseif (is_single()) {;echo ' You are here: <a href="';echo get_settings('home');;echo '">Home</a> > ';the_category(', ') ;echo ' > ';the_title();;echo ' ';}elseif (is_page()) {;echo ' You are here: <a href="';echo get_settings('home');;echo '">Home</a> > ';the_title();;echo ' ';}elseif (is_404()) {;echo ' You are here: <a href="';echo get_settings('home');;echo '">Home</a> > 404 Error
';}elseif (isset($_GET['paged']) &&!empty($_GET['paged'])) {;echo ' You are here: <a href="';echo get_settings('home');;echo '">Home</a> > Archive
';};echo '';wp_reset_query();?>

footer.php----------------------------------->
<?php
echo ' </div>
<!-- Container end -->
</div>
<!-- Wrapper end -->
<div class="clear"></div>
<!-- Footer begin -->
<div class="footer">
<!-- FootPage begin -->
';if ( function_exists('wp_nav_menu') ) {;echo ' ';wp_nav_menu( array('theme_location'=>'footmenu','container'=>'','depth'=>1,'menu_class'=>'footpage'));;echo ' ';};echo ' <!-- FootPage end -->
<!-- FriendLink begin -->
';wp_reset_query();;echo ' ';if (get_option('wpyou_if_friendlink') == '2') {;echo '
';}elseif(get_option('wpyou_if_friendlink') == '1') {;echo ' ';if ( is_home() ) {;echo ' <div class="friendlink">
<ul>
<li><strong>My Links錛�</strong></li>
';wp_list_bookmarks('title_li=&title_before=&title_after=&categorize=0&orderby=id&order=ASC');;echo ' </ul>
</div>
';};echo ' ';}else {;echo ' <div class="friendlink">
<ul>
<li><strong>My Links錛�</strong></li>
';wp_list_bookmarks('title_li=&title_before=&title_after=&categorize=0&orderby=id&order=ASC');;echo ' </ul>
</div>
';};echo ' <!-- FriendLink end -->
';if ( get_option('wpyou_footer') ) {;echo ' ';echo stripslashes(get_option('wpyou_footer'));;echo ' ';}else {;echo '
<p>Copyright © ';echo date("Y");;echo ' <a href="';echo get_option('home');;echo '/">';bloginfo('name');;echo '</a> All Rights Reserved.</p>
<p>Theme Designed by: <a href="http://www.wpyou.com" target="_blank">WPYOU</a></p>
';};echo ' </div>
</div>
<!-- Footer end -->
';wp_footer();;echo '<script type="text/javascript" src="';bloginfo('template_url');;echo '/js/jquery.js"></script>
<script type="text/javascript" src="';bloginfo('template_url');;echo '/js/wpyou.js"></script>
';if (get_option('wpyou_customer')) {;echo '<!-- Customer begin -->
<script type="text/javascript">
$(document).ready(function(){
$("#closead").click( function(){$(\'#customer\').css(\'display\',\'none\');})
var menuYloc = $("#customer").offset().top;
$(window).scroll(function (){
var offsetTop = menuYloc + $(window).scrollTop() +"px";
$("#customer").animate({top : offsetTop },{ ration:100 , queue:false });
});
});
</script>
<div id="customer" class="png">
<h3>Customer Service</h3>
<div class="customcnt">
';echo get_option('wpyou_customer');;echo ' </div>
<div class="clear"></div>
<a href="javascript:void(0)" id="closead">Close</a>
<div class="clear"></div>
</div>
<!-- Customer end -->
';};echo '<!--[if lte IE 6]>
<script type="text/javascript" src="';bloginfo('template_directory');;echo '/js/DD_belatedPNG.js"></script>
<script type="text/javascript">
DD_belatedPNG.fix(\'#png, .png, .widget\');
</script>
<![endif]-->
</body>
</html>';?>

functions.php------------------------------------>
<?php

if ( function_exists('register_sidebars') )
{
register_sidebar(array(
'name'=>'側邊欄',
'before_title'=>'<h3>',
'after_title'=>'</h3>'
));
}
if ( function_exists( 'add_theme_support')) {add_theme_support( 'post-thumbnails');}
if ( function_exists('add_custom_background')) {add_custom_background();}
if ( function_exists('register_nav_menus')) {register_nav_menus(array('primary'=>'<b style="font-style:normal; color:#F00;">頂部菜單</b> 設置'));}
if ( function_exists('register_nav_menus')) {register_nav_menus(array('footmenu'=>'<b style="font-style:normal; color:#F00;">底部菜單</b> 設置'));}
function catch_post_image() {
global $post,$posts;
$first_img = '';
ob_start();
ob_end_clean();
$output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i',$post->post_content,$matches);
$first_img = $matches [1] [0];
if(empty($first_img)){
$site_url = bloginfo('template_url');
$first_img = "$site_url/images/no-thumb.jpg";
}
return $first_img;
}
function post_is_in_descendant_category( $cats,$_post = null )
{
foreach ( (array) $cats as $cat ) {
$descendants = get_term_children( (int) $cat,'category');
if ( $descendants &&in_category( $descendants,$_post ) )
return true;
}
return false;
}
function wpyou_strimwidth($str ,$start ,$width ,$trimmarker ){
$output = preg_replace('/^(?:[\x00-\x7F]|[\xC0-\xFF][\x80-\xBF]+){0,'.$start.'}((?:[\x00-\x7F]|[\xC0-\xFF][\x80-\xBF]+){0,'.$width.'}).*/s','\1',$str);
return $output.$trimmarker;
}
function wpyou_pagenavi($range = 9){
global $paged,$wp_query;
if ( !$max_page ) {$max_page = $wp_query->max_num_pages;}
if($max_page >1){if(!$paged){$paged = 1;}
if($paged != 1){echo "<a href='".get_pagenum_link(1) ."' class='extend' title='First'>First</a>";}
previous_posts_link('Previous');
if($max_page >$range){
if($paged <$range){for($i = 1;$i <= ($range +1);$i++){echo "<a href='".get_pagenum_link($i) ."'";
if($i==$paged)echo " class='current'";echo ">$i</a>";}}
elseif($paged >= ($max_page -ceil(($range/2)))){
for($i = $max_page -$range;$i <= $max_page;$i++){echo "<a href='".get_pagenum_link($i) ."'";
if($i==$paged)echo " class='current'";echo ">$i</a>";}}
elseif($paged >= $range &&$paged <($max_page -ceil(($range/2)))){
for($i = ($paged -ceil($range/2));$i <= ($paged +ceil(($range/2)));$i++){echo "<a href='".get_pagenum_link($i) ."'";if($i==$paged) echo " class='current'";echo ">$i</a>";}}}
else{for($i = 1;$i <= $max_page;$i++){echo "<a href='".get_pagenum_link($i) ."'";
if($i==$paged)echo " class='current'";echo ">$i</a>";}}
next_posts_link('Next');
if($paged != $max_page){echo "<a href='".get_pagenum_link($max_page) ."' class='extend' title='Last'>Last</a>";}
}
}
function custom_comment($comment,$args,$depth) {
$GLOBALS['comment'] = $comment;;echo ' <li ';comment_class();;echo ' id="li-comment-';comment_ID() ;echo '">
<div id="comment-';comment_ID();;echo '">
<div class="comment-author vcard">
';;echo ' <div class="author_info">
';printf(__('<cite class="fn">%s</cite>'),get_comment_author_link()) ;echo ' ';edit_comment_link(__('(Edit)'),' ','') ;echo '<br />
<em>';printf(__('%1$s at %2$s'),get_comment_date('Y/m/d '),get_comment_time(' H:i:s')) ;echo '</em>
</div>
<div class="reply">
';comment_reply_link(array_merge( $args,array('depth'=>$depth,'max_depth'=>$args['max_depth']))) ;echo ' </div>
</div>
';if ($comment->comment_approved == '0') : ;echo ' <em>';_e('Your comment is awaiting moderation.') ;echo '</em>
<br />
';endif;;echo ' ';comment_text() ;echo ' </div>
';};echo '';
$themename = "當前主題";
$theme_dir=get_bloginfo('template_url');
if ( is_admin() ){
wp_enqueue_style("functions",$theme_dir."/options/css/wpyouthemeoption.css",false,"all");
}
function wpyou_add_option() {
global $themename;
add_menu_page($themename.'設置',''.$themename.'設置',10,'theme-setup','wpyou_options',get_bloginfo('template_url').'/options/images/icon_wpyou.png','3');
add_submenu_page('theme-setup','主題設置','主題設置',10,'theme-setup','wpyou_options');
add_action( 'admin_init','register_mysettings');
}
function register_mysettings() {
register_setting( 'wpyou-settings','wpyou_cnsite_url');
register_setting( 'wpyou-settings','wpyou_ensite_url');
register_setting( 'wpyou-settings','wpyou_news_id');
register_setting( 'wpyou-settings','wpyou_news_perpage');
register_setting( 'wpyou-settings','wpyou_procts_id');
register_setting( 'wpyou-settings','wpyou_procts_perpage');
register_setting( 'wpyou-settings','wpyou_customer');
register_setting( 'wpyou-settings','wpyou_aboutus');
register_setting( 'wpyou-settings','wpyou_newposts_homepage');
register_setting( 'wpyou-settings','wpyou_hotposts_homepage');
register_setting( 'wpyou-settings','wpyou_if_seo');
register_setting( 'wpyou-settings','wpyou_homepage_title');
register_setting( 'wpyou-settings','wpyou_homepage_description');
register_setting( 'wpyou-settings','wpyou_homepage_keywords');
register_setting( 'wpyou-settings','wpyou_homepage_keywords_separater');
register_setting( 'wpyou-settings','wpyou_if_friendlink');
register_setting( 'wpyou-settings','wpyou_footer');
}
function wpyou_options() {
global $themename;
;echo '<!-- Options Form begin -->
<div class="wrap">
<div id="icon-options-general" class="icon32"><br/></div>
<h2>WPTradeD外貿主題設置</h2>
<ul class="subsubsub wpyounavi">
<li><a href="#wpyou_bs"><strong>基本設置</strong></a> |</li>
<li><a href="#wpyou_hp"><strong>首頁設置</strong></a> |</li>
<li><a href="#wpyou_seo"><strong>SEO設置</strong></a> |</li>
<li><a href="#wpyou_ft"><strong>底部設置</strong></a></li>
</ul>
<form method="post" action="options.php">
';settings_fields('wpyou-settings');;echo ' <table class="form-table wpyou-form">
<tr valign="top" class="toptitle">
<th><h3 id="wpyou_bs">基本設置</h3></th>
<td></td>
</tr>
<tr valign="top">
<th scope="row"><label>自定義菜單設置方法<span class="description"></span></label></th>
<td>
<span class="description">
本主題共有2個自定義菜單,分別為: <strong>頂部菜單、底部菜單</strong>
<br />

閱讀全文

與echojsscroll相關的資料

熱點內容
網路HRV是什麼意思 瀏覽:918
word框中打勾 瀏覽:577
tcl筆試題java 瀏覽:467
win10怎麼登錄安全模式 瀏覽:679
除了archdaily還有什麼網站 瀏覽:567
數控下料圓形怎麼編程 瀏覽:785
安裝游戲在文件管理找不到怎麼辦 瀏覽:216
想買奢侈包包下載什麼app 瀏覽:1000
閃送員是哪裡的app 瀏覽:530
火車站進站閘機的數據哪裡可以查 瀏覽:503
cad備份文件清理軟體 瀏覽:822
夾具裝配圖cad文件百度網盤 瀏覽:567
如何將excel表格轉成文件包 瀏覽:1
網路配置文件應該怎麼設置 瀏覽:886
蘋果全能文件王下載位置 瀏覽:700
中國知網是哪些資料庫 瀏覽:280
fastjson優點 瀏覽:302
mstcam數控銑床編程如何串連 瀏覽:502
d4252用什麼軟體編程 瀏覽:35
大學生如何參與大數據 瀏覽:779

友情鏈接