⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hyperlink.php

📁 类似youtube的视频分享网站源码。有后台管理系统及模板
💻 PHP
📖 第 1 页 / 共 2 页
字号:
<?php
include_once ('./config.php');
include_once('./editor_functions.php');
include_once ('./includes/common.php');
include_once ('./lang/'.$lang_include);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title><?php echo $lang['titles']['hyperlink']; ?></title>
<style type="text/css">
<!--
@import url(<?php echo WP_WEB_DIRECTORY; ?>dialoge_theme.css);
p {
	margin:2px
}
.tbuttonUp {
	width: 88px;
	height: 68px;
	padding: 2px;
	border: 1px solid threedface;
	background-color: threedface;
	cursor: default;
	text-align:center;
	display: block;
}
.tbuttonDown {
	width: 88px;
	height: 68px;
	padding: 2px;
	border-top: 1px solid buttonshadow;
	border-left: 1px solid buttonshadow;
	border-bottom: 1px solid buttonhighlight;
	border-right: 1px solid buttonhighlight;
	background-color: #f7f7f7;
	cursor: default;
	text-align:center;
	display: block;
}
.tbuttonOver {
	width: 88px;
	height: 68px;
	padding: 2px;
	border-bottom: 1px solid buttonshadow;
	border-right: 1px solid buttonshadow;
	border-top: 1px solid buttonhighlight;
	border-left: 1px solid buttonhighlight;
	background-color: threedface;
	cursor: default;
	text-align:center;
	display: block;
}
#outlookbar {
	height:301; 
	border-top:1px solid threedshadow; 
	border-bottom: 1px solid threedhighlight; 
	border-left: 1px solid threedshadow; 
	border-right: 1px solid threedhighlight
}
-->
</style>
<script language="JavaScript" type="text/javascript" src="<?php echo WP_WEB_DIRECTORY; ?>js/dialogEditorShared.js"></script>
<script language="JavaScript" type="text/javascript" src="<?php echo WP_WEB_DIRECTORY; ?>js/dialogShared.js"></script>
<script type="text/javascript">
<!--//
var CURRENT_HIGHLIGHT
function highlight(srcElement) {
	if (CURRENT_HIGHLIGHT) {
		CURRENT_HIGHLIGHT.style.backgroundColor='#ffffff';
		CURRENT_HIGHLIGHT.style.color ='#003399';
	}
	document.getElementById(srcElement).style.backgroundColor='highlight';
	document.getElementById(srcElement).style.color = 'highlighttext';
	CURRENT_HIGHLIGHT = document.getElementById(srcElement);
}
function initialize() {
	kids = document.getElementById('outlookbar').getElementsByTagName('div');
	for (var i=0; i < kids.length; i++) {
		if (kids[i].className == "tbuttonUp") {
			kids[i].onmouseover = m_over;
			kids[i].onmouseout = m_out;
			kids[i].onmousedown = m_down;
			kids[i].onclick = m_click;
		}
	}
	// show links
	if (obj.links != '') {
		var links = obj.links
		var depth = '';
		var indent = '';
		var str = '';
		var num = links.length;
		for (var i=0; i<num; i++) { 
			if (links[i][1] && links[i][2]) {
				if (links[i][0] >= 1) {
					depth = (links[i][0]-1)*23;
					indent = "<img src=\"" + parentWindow.wp_directory + "images/branch.gif\" width=\"23\" height=\"22\" alt=\"\" border=\"0\" align=\"absmiddle\">";
				} else {
					depth = 0;
					indent = '';
				}
				if (links[i][1] == 'folder') {
					str += "<nobr><p class=\"filelink\" style=\"height:22px;margin:2px 2px 2px "+(depth+2)+"px\">" + indent + "<img src=\"" + parentWindow.wp_directory + "images/folder.gif\" width=\"23\" height=\"22\" alt=\"\" border=\"0\" align=\"absmiddle\">" + (links[i][2].replace(/' '/gi, '&nbsp;')) + " </p></nobr>";
				} else {
					str += "<p><nobr><a class=\"filelink\" id=\"" + (links[i][1].replace(/"/gi, '&quote;')) + "\" style=\"height:22px; margin:0px 0px 0px " + depth + "px;\" href=\"javascript:highlight(\'" + (links[i][1].replace(/'/gi, "\'")) + "\');localLink(\'" + (links[i][1].replace(/'/gi, "\'")) + "\');\" title=\"URL: " + (links[i][1].replace(/"/gi, '&quote;')) + "\">" + indent + "<img src=\"" + parentWindow.wp_directory + "images/htm_icon.gif\" width=\"23\" height=\"22\" alt=\"\" border=\"0\" align=\"absmiddle\">" + (links[i][2].replace(/ /gi, '&nbsp;')) + " </a></nobr></p>";
				}
			}	
		}
		document.getElementById('links').innerHTML = str;
	}
	// show anchors
	var anchors = obj.edit_object.document.getElementsByTagName('IMG');
	var anchorLinks = '<p><a class="filelink" id="#" style="height:22px; margin:0px 0px 0px 0px;" href="javascript:highlight(\'#\');localLink(\'#\');" title="URL: #"><img src="<?php echo WP_WEB_DIRECTORY; ?>images/spacer.gif" width="1" height="22" alt="" border="0" align="absmiddle"><?php echo $lang['top_of_document']; ?></a></p>\n';
	var l=anchors.length
	anchorLinks+='<p><b><img src="<?php echo WP_WEB_DIRECTORY; ?>images/spacer.gif" width="1" height="22" alt="" border="0" align="absmiddle"><?php echo $lang['bookmarks']; ?></b></p>';
	for (var i=0; i < l; i++) {
		if ((anchors[i].getAttribute('name')) && (anchors[i].src.search(parentWindow.wp_directory+"/images/bookmark_symbol.gif") != -1)) {
			var name = anchors[i].getAttribute('name')
			var nameSlashed = name.replace(/'/, "\\'")
			anchorLinks += '<p><a class="filelink" id="#'+name+'" style="height:22px; margin:0px 0px 0px 0px;" href="javascript:highlight(\'#'+nameSlashed+'\');localLink(\'#'+nameSlashed+'\');" title="URL: #'+name+'"><img src="<?php echo WP_WEB_DIRECTORY; ?>images/bookmark.gif" width="22" height="22" alt="" border="0" align="absmiddle">'+name+'</a></p>\n'
		}
	}
	if (obj.showbookmarkmngr == true) {
		document.getElementById('page_button').style.display='block';
	}
	if (obj.links != '') {
		document.getElementById('site_button').style.display='block';
	}
	document.getElementById('anchors').innerHTML = anchorLinks;
	var current_href = parentWindow.wp_current_hyperlink;
	if ((current_href!="") && (current_href!=null)) {
		if (document.getElementById(current_href)) {
			document.getElementById(current_href).style.backgroundColor='highlight';
			document.getElementById(current_href).style.color = 'highlighttext';
			CURRENT_HIGHLIGHT = document.getElementById(current_href);
			if ((current_href.substring(0,1) == "#") && (obj.showbookmarkmngr == true)) {
				document.getElementById('page_address').value = current_href;
				document.getElementById('page_title').value = "<?php echo stripslashes($_GET['title']); ?>";
				showAnchors();
			} else {
				document.getElementById('site_target').value = "<?php echo stripslashes($_GET['target']); ?>"
				document.getElementById('site_target_list').value = "<?php echo stripslashes($_GET['target']); ?>"
				document.getElementById('site_title').value = "<?php echo stripslashes($_GET['title']); ?>"
				document.getElementById('site_address').value = current_href;
				showLinks();
				localLink(current_href);
			}
			document.getElementById(current_href).focus();
		} else if (current_href.substring(0,7) == "mailto:") {
			var email_array = current_href.split('?subject=');
			document.getElementById('email_address').value = email_array[0];
			if (email_array[1]) {
				document.getElementById('email_subject').value = email_array[1];
			}
			document.getElementById('email_title').value = "<?php echo stripslashes($_GET['title']); ?>"
			showEmail();
		} else {
			document.getElementById('web_target').value = "<?php echo stripslashes($_GET['target']); ?>"
			document.getElementById('web_target_list').value = "<?php echo stripslashes($_GET['target']); ?>"
			document.getElementById('web_address').value = current_href;
			document.getElementById('web_title').value = "<?php echo stripslashes($_GET['title']); ?>"
			showWeb();
		}	
	} else if (obj.links != '') {
		showLinks();
	} else {
		showWeb();
	}
}
function m_over () {
	if (this.className!='tbuttonDown') {
		this.className = 'tbuttonOver';
	}
}
function m_out() {
	if (this.className!='tbuttonDown') {
		this.className = 'tbuttonUp';
	}
}
function m_down() {
	if (this.className!='tbuttonDown') {
		this.className = 'tbuttonDown';
	}
}
function m_click() {
	kids = document.getElementById('outlookbar').getElementsByTagName('div');
	for (var i=0; i < kids.length; i++) {
		if (kids[i].className == "tbuttonDown") {
			if (kids[i] != this) {
				kids[i].className = "tbuttonUp";
			}
		}
	}
	if (this.id=='site_button') {
		showLinks();
	} else if (this.id=='page_button') {
		showAnchors();
	} else if (this.id=='email_button') {
		showEmail();
	} else if (this.id=='web_button') {
		showWeb();
	}
}
function linkit() {
	var address = '';
	var target = '';
	var title = '';
	if (document.getElementById('placeonthissite').style.display == 'block') {
		address = document.getElementById('site_address').value;
		target = document.getElementById('site_target').value;
		title = document.getElementById('site_title').value;
	} else if (document.getElementById('placeonthispage').style.display == 'block') {
		address = document.getElementById('page_address').value;
		title = document.getElementById('page_title').value;	
	} else if (document.getElementById('email').style.display == 'block') {
		if (document.getElementById('email_address').value.substring(0,7) == "mailto:") {
			address = document.getElementById('email_address').value
		} else {
			address = 'mailto:' + document.getElementById('email_address').value
		}
		if (document.getElementById('email_subject').value != '') {
			address = address + '?subject=' + document.getElementById('email_subject').value;
		}
		title = document.getElementById('email_title').value;
	} else if (document.getElementById('external').style.display == 'block') {
		address = document.getElementById('web_address').value;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -