広告用外部ファイルソース

CSSファイル(http://fc2.com/ad/menu.css)

#menu{cursor:default;position:absolute;visibility:hidden;top:0;left:0;
background:buttonface;border:1 solid buttonface}
#menu .menu{background:buttonface;border:2 outset buttonhighlight;position:absolute}
#menu TR{color:menutext}
#menu TD{font:menu;height:20}
#menu .root{border:1 solid buttonface;padding:1;padding-left:7;padding-right:7;margin:6}
#menu .icon{text-align:center}
#menu .disabled{color:buttonshadow}
#menu .more{font-family:webdings;width:20;text-align:right}
#menu #handle{border-left:1 solid buttonhighlight;
border-right:1 solid buttonshadow;
border-top:1 solid buttonhighlight;
border-bottom:1 solid buttonshadow;
padding:0;
margin:0;
cursor:move}
#outerDiv{position:absolute;overflow:auto;z-index:-1;height:100%;width:100%}

JSファイル(http://fc2.com/ad/menu-ie.js)

/*@cc_on @*/
/*@if (@_win32)

_vctag='<a href="http://blog.fc2.com/" target="_blank"><img src="http://fc2.com/image/4F47m.gif" border="0">無料ブログ</a>    <strong><a href="http://cash.fc2web.com/" target="_blank">キャッシング比較</a></strong>'

/*valuecommerce*/

var activeMenu=null
var activeSub=null
_D=document
function menuItemHighlight(o){
with(o.style){
background="highlight"
color="highlighttext"
}
}
function menuItemNormal(o){
with(o.style){
background=""
color=""
}
}
function raiseButton(o){
with(o.style){
borderTop=borderLeft="1 solid buttonhighlight"
borderBottom=borderRight="1 solid buttonshadow"
padding="1"
paddingLeft=paddingRight="7"
}
}
function normalButton(o){
with(o.style){
border="1 solid buttonface"
padding="1"
paddingLeft=paddingRight="7"
}
}
function pressedButton(o){
with(o.style){
borderTop=borderLeft="1 solid buttonshadow"
paddingTop="2"
paddingLeft="8"
borderBottom=borderRight="1 solid buttonhighlight"
paddingBottom="0"
paddingRight="6"
}
}
function cleanUpMenuBar(){
for(i=0,r=menu.rows;i<r.length;i++)
for(j=0,c=r(i).cells;j<c.length;j++)
if(c(j).className=="root")
normalButton(c(j))
}
function getMenuItem(o){
var e=o
while(e&&e.tagName!="TABLE"&&e.id!="menubar"&&e.id!="menu"&&e.id!="handle"){
if(e.tagName=="TR"||e.className=="root")o=e
e=e.parentElement
}
return o
}
function menuClick(){
if(event.srcElement==null)
return
var o=getMenuItem(event.srcElement)
if(o.className!="disabled"&&o.id!="menubar"){
if(o.className=="root"){
if(activeMenu)
raiseButton(o)
else
pressedButton(o)
toggleMenu(o)
}
else if(o.href){
if(activeMenu)
toggleMenu(activeMenu.parentElement)
cleanUpMenuBar()
if(o.target)
open(o.href,o.target)
else if(_D.all.tags("BASE").item(0)!=null)
open(o.href,_D.all.tags("BASE").item(0).target)
else
location=o.href
}
}
event.cancelBubble=true
}
function Restore(){
if(activeMenu){
toggleMenu(activeMenu.parentElement)
cleanUpMenuBar()
}
}
_D.onclick=Restore
function menuOver(){
if(event.fromElement==null||event.toElement==null||event.fromElement==event.toElement)
return
var fromEl=getMenuItem(event.fromElement)
var toEl=getMenuItem(event.toElement)
if(fromEl==toEl)
return
if(toEl.className!="disabled"&&toEl.id!="menubar"){
if(toEl.className=="root"){
if(activeMenu){
if(toEl.menu!=activeMenu){
cleanUpMenuBar()
pressedButton(toEl)
toggleMenu(toEl)
}
}
else{
raiseButton(toEl)
}
}
else{
if(fromEl!=toEl&&toEl.tagName!="TABLE"){
cleanup(toEl.parentElement.parentElement,false)
menuItemHighlight(toEl)
toEl.parentElement.parentElement.activeItem=toEl
if(toEl.href)
status=toEl.href
if(toEl.className=="sub")
showSubMenu(toEl,true)
}
}
}
}
function menuOut(){
if(event.fromElement==null||event.toElement==null||event.fromElement==event.toElement)
return
var fromEl=getMenuItem(event.fromElement)
var toEl=getMenuItem(event.toElement)
if(fromEl==toEl)
return
if(fromEl.className=="root"){
if(activeMenu){
if(fromEl.menu!=activeMenu)
normalButton(fromEl)
}
else
normalButton(fromEl)
}
else{
if(fromEl.className!="disabled"&&fromEl.id!="menubar"){
if(fromEl!=toEl&&fromEl.tagName!="TABLE")
menuItemNormal(fromEl)
status=""
}
}
}
function toggleMenu(o){
if(o.menu==null)
o.menu=getChildren(o)
if(o.menu==activeMenu){
if(activeSub)
menuItemNormal(activeSub.parentElement.parentElement)
cleanup(o.menu,true)
activeMenu=null
activeSub=null
}
else{
if(activeMenu){
cleanup(activeMenu,true)
hideMenu(activeMenu)
}
activeMenu=o.menu
var tPos=topPos(o.menu)+menu.offsetHeight
if(_D.body.offsetHeight-tPos>=o.menu.offsetHeight){
o.menu.style.pixelTop=menu.offsetHeight-o.offsetTop-2
dir=2
}
else{
o.menu.style.pixelTop=o.offsetTop+2-o.menu.offsetHeight
dir=8
}
o.menu.style.pixelLeft=o.offsetLeft
show(o.menu,dir)
}
}
function topPos(o){
var temp=o,y=0
while(temp.id!="menu"){temp=temp.offsetParent;y+=temp.offsetTop}
return y
}
function leftPos(o){
var temp=o,x=0
while(temp.id!="menu"){temp=temp.offsetParent;x+=temp.offsetLeft}
return x+o.offsetParent.offsetWidth
}
function show(o,dir){
if(self.createPopup){
o.style.filter=[
"DX.Wheel(duration=0.5,spokes=5)",
"DX.Fade(duration=0.5)",
"DX.Pixelate(duration=0.5,maxSquare=40)",
"DX.RandomDissolve(duration=0.5)",
][function(m){return Math.floor(Math.random()*(m+1))}(3)].replace(/DX/,"progid:DXImageTransform.Microsoft")
o.filters[0].Enabled=true
o.filters[0].Apply()
o.filters[0].Play()
}
o.style.visibility="visible"
}
function cleanup(menu,hide){
if(menu.activeItem){
if(menu.activeItem.className=="sub"&&menu.activeItem.subMenu){
cleanup(menu.activeItem.subMenu,true)
}
menuItemNormal(menu.activeItem)
}
if(hide){
hideMenu(menu)
}
}
function hideMenu(o){
if(self.createPopup){
o.filters[0].Stop()
o.filters[0].Enabled=false
}
o.style.visibility="hidden"
}
function getChildren(o){
return o.children.tags("TABLE")[0]
}
var dragObject=null
var dragObjectPos="top"
var _m=_D.all.tags("META")
for(var i=0;i<_m.length;i++)if(_m[i].httpEquiv.match(/^menupos$/i))dragObjectPos=_m[i].content.toLowerCase()
var tx,ty
function fixSize(){
with(outerDiv.style){
if(dragObjectPos=="top"){
top=menu.offsetHeight
height=_D.body.clientHeight-menu.offsetHeight
}
else if(dragObjectPos=="bottom"){
top=0
height=_D.body.clientHeight-menu.offsetHeight
menu.style.top=_D.body.clientHeight-menu.offsetHeight
}
else{
top=0
height=_D.body.clientHeight
}
}
if(dragObjectPos=="bottom"){menu.style.border="2px buttonface";menu.style.borderStyle="outset none inset"}else{menu.style.border="2px outset white"}
}
function document.onmousedown(){
if(event.srcElement.id=="handle"){
dragObject=_D.all[event.srcElement.getAttribute("for")]
Restore()
tx=(event.clientX-dragObject.style.pixelLeft)
ty=(event.clientY-dragObject.style.pixelTop)
event.returnValue=false
event.cancelBubble=true
dragObject.setCapture()
}
else{
dragObject=null
}
}
function document.onmouseup(){
if(dragObject){
dragObject.releaseCapture()
dragObject=null
}
}
function document.onmousemove(){
if(dragObject){
with(dragObject.style){
if(event.clientX>=0){
if(event.clientY-ty<=15){
width="100%"
top=0
left=0
dragObjectPos="top"
fixSize()
}
else if(event.clientY-ty>=_D.body.clientHeight-menu.offsetHeight-15){
width="100%"
top=_D.body.clientHeight-menu.offsetHeight
left=0
dragObjectPos="bottom"
fixSize()
}
else{
width="10px"
left=event.clientX-tx
top=event.clientY-ty
dragObjectPos="float"
fixSize()
}
}
event.returnValue=false
event.cancelBubble=true
}
}
}

/*submenu*/
function subitm(url,txt){
return '<tr href="'+url+'" title="" target="_blank">'
+'<td style="text-align:center">%space%<img src="http://fc2.com/ad/htmlicon.gif" width=16 height=17 border=0></span></td>'
+'<td nowrap>'+txt+'</td>'
+'<td>%space%&nbsp;</span></td>'
+'</tr>'
}
_D.write((
 '<table id="menu" onselectstart="return false" onmouseover="menuOver()" onmouseleave="menuOut()" onmouseout="menuOut()" onclick="menuClick()" cellspacing="1">'
+'<tr id="menubar">'
+'<td class="disabled" style="padding-left:0 padding-right:1">'
+'<div class="disabled" id="handle" for="menu" style="left:3;width:3;height:100%" title="ドラッグで、好きなところへ動かす。"></div></td>'
+'<td class="root" nowrap>FC2'
+'<table class="menu" style="visibility:hidden" cellspacing=0>'
+'<tr class="disabled">'
+'<td rowspan=99 style="background:URL(http://fc2.com/ad/menu.gif)">%space%&nbsp;</span></td>'
+'</tr>'
+subitm('http://textad.net','文字広告配信')
+subitm('http://www.fc2web.com/','無料HP100MBレンタル')
+subitm('http://www.fc2bbs.com/','無料掲示板レンタル')
+subitm('http://community.fc2.com/','話題別 語らい掲示板無料')
+subitm('http://mallkun.com/','無料ショッピングカート/etc')
+subitm('http://fc2.com/','ドメイン登録$11〜')
+subitm('http://fc2.com/','安定レンタルサーバー')
+subitm('http://sugoicounter.com/','無料解析付カウンター')
+subitm('http://analyzer.fc2.com/','無料アクセス解析レンタル')
+subitm('http://deaikun.com/','無料可愛い出会い')
+'</table>'
+'</td>'
+'<td width=100% class="disabled" onmouseover="event.cancelBubble=true" id=textad_cell></td>'
+'<td width=100% class="disabled" comment="Needed to fill out the menubar">&nbsp;</td>'
+'</tr>'
+'</table>'
+'<div id="outerDiv" STYLE="padding:5pt;margin:0pt;left:0pt">'
).replace(/%space%/g,'<span style="width:20">')
)

/*init*/
if(!_D.compatMode||_D.compatMode=="BackCompat"){
_D.body.scroll="no"
_D.styleSheets(0).addRule("body","border:0;margin:0;")
textad_cell.insertAdjacentElement("afterBegin",textad_table)
textad_table.style.visibility="visible"
ad_vc.innerHTML=_vctag
fixSize()
window.onresize=function(){outerDiv.style.height="auto";fixSize()}
menu.style.visibility="visible"
function window.onbeforeprint(){menu.style.display="none";outerDiv.style.top=outerDiv.style.height=_D.body.style.overflow="auto"}
function window.onafterprint(){menu.style.display="block";_D.body.style.overflow="hidden";fixSize()}
}else
document.write(_vctag+"<br>")
@else @*/
/*@end @*/

女の子お絵かき掲示板ナスカiPhone修理