ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 1089


Ignore:
Timestamp:
Dec 8, 2006, 6:14:19 PM (13 years ago)
Author:
takanashi
Message:

切り替え用javascript追加 / inc_headerをソースの上に持ってきた(SEO対策)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/trunk/webapp/modules/pc/templates/inc_header.tpl

    r1088 r1089  
    55<html>
    66<head>
     7({$INC_HEADER_inc_html_head|smarty:nodefaults})
    78<meta http-equiv="Pragma" content="no-cache">
    89<meta http-equiv="Cache-Control" content="no-cache">
     
    260261-->
    261262</style>
    262 ({$INC_HEADER_inc_html_head|smarty:nodefaults})
     263<script type="text/javascript">
     264<!--
     265
     266TextFiledClassName_normal = 'text';
     267TextFiledClassName_focus  = 'text_focus';
     268
     269Event.observe(window, 'load', setFocusClass, false);
     270function setFocusClass() {
     271  var TFs = $A(document.getElementsByClassName(TextFiledClassName_normal));
     272  TFs.each(function (node){
     273    node.TFclass = node.className;
     274    node.TFclass_onfocus = TextFiledClassName_focus;
     275    node.onfocus = function() { this.className = this.TFclass_onfocus; };
     276    node.onblur  = function() { this.className = this.TFclass; };
     277  });
     278}
     279
     280//-->
     281</script>
    263282</head>
    264283({***************************************})
Note: See TracChangeset for help on using the changeset viewer.