Search for Plugins: Advanced
Please Sign in, Register or Resend Activation Email


  e107 :: Forums :: E107 Plugins :: Code Bank
<< Previous thread | Next thread >>  
java Script          
Author Post
Sun Sep 30 2007, 06:50AM
Registered Member #50490
Joined: Sun Apr 30 2006, 09:52AM
Posts: 1
Hello ! How to put this java Script to theme ? or main page ?
<script type="text/javascript"><!--
document.cookie="w=w; path";
var altastat_c="N";
if(document.cookie) altastat_c="Y";
var altastat_je=(navigator.javaEnabled()?"Y":"N");
var altastat_rn=Math.random();
var altastat_ref=escape(document.referrer);
var altastat_pg=escape(window.location.href);
var altastat_s="16558";
var altastat_a="0";
var altastat_n=(navigator.appName.substring(0,2)=="Mi")?0:1;
var altastat_scr='&w='+screen.width+'&h='+screen.height+'&d='+((altastat_n==0)?screen.colorDepth:screen.pixelDepth);
var altastat_req='&r='+altastat_ref+'&p='+altastat_pg+'&i='+altastat_rn+'&s='+altastat_s+'&g='+altastat_a+altastat_scr+'&c='+altastat_c+'&e='+altastat_je;
document.write("<a href=\"\" target=_blank><img src=\""+altastat_req+"\" border=\"0\" width=\"88\" height=\"31\" alt=\"Altastat Counter\"></a>");
Sun Mar 15 2009, 02:14AM
Registered Member #69922
Joined: Sun Dec 24 2006, 05:39AM
Posts: 29
put it at the bottom of templates/header_default.php after the ? >

Unless you need it in a specific place.
Back to top
V-Chat Live
Thu Sep 16 2010, 09:31AM
Registered Member #105623
Joined: Wed Jul 08 2009, 02:31PM
Posts: 2
Running into the same issue. i put the code ##SANITISED## type="text/javascript" src="ajaxim/js/im.load.js">##SANITISED##> right after the ?> in the footer page and still, nothing shows up.
Back to top
V-Chat Live
Thu Sep 16 2010, 10:14AM
Registered Member #105623
Joined: Wed Jul 08 2009, 02:31PM
Posts: 2
<script type="text/javascript" src="ajaxim/js/im.load.js?php"></script>
There is the line of code im trying to insert, for some reason i cant get this to go, any help would be greatly appreciated.
Back to top
Wed Sep 22 2010, 02:33PM

Registered Member #79854
Joined: Thu May 03 2007, 09:55AM
Location: France
Posts: 49
Use theme_head(){ echo "ur js"; } function
Like that:
function theme_head() {
    // here all your code to put in head
    echo '<script type='text/javascript' src='".THEME_ABS."js/urJsFile.js'></script>';

[ Edited Wed Sep 22 2010, 02:36PM ]
Back to top
Tue Feb 15 2011, 12:24PM
Registered Member #112100
Joined: Tue Feb 15 2011, 12:10PM
Location: us
Posts: 1
Hey thanks for sharing this scripting code.
Back to top
Wed Aug 31 2011, 10:55AM
Registered Member #113401
Joined: Sat Aug 06 2011, 03:23AM
Posts: 18
Some reason I can't leave this to, help would be appreciated..

ncis seasons
the simpsons seasons
Back to top

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System
Render time: 0.2565 sec, 0.1818 of that for queries. DB queries: 43.