dcsimg
A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: HELP with html in flash

  1. #1
    Senior Member
    Join Date
    Mar 2004
    Posts
    301

    HELP with html in flash

    i have to add this into my flash document but how?
    [script]
    <script language="javascript">
    DOC=document;var data, p;
    var agt=navigator.userAgent.toLowerCase();
    p='http';
    if((location.href.substr(0,6)=='https:')||(locatio n.href.substr(0,6)=='HTTPS:')) {p='https';} data = '&r=' + escape(DOC.referrer) + '&n=' + escape(navigator.userAgent) + '&p=' + escape(navigator.userAgent)
    if(navigator.userAgent.substring(0,1)>'3') {data = data + '&sd=' + screen.colorDepth + '&sw=' + escape(screen.width+ 'x'+screen.height)};
    document.write('<a href="http://redirect.xangahits.com" target="_blank" >');
    document.write('<img border=0 hspace=0 '+'vspace=0 src="http://www.coolcounters.com/counter.php?i=90433' + data + '"></a>');
    document.write("<scr"+"ipt src='http://www.coolcounters.com/counter.js'></scr"+"ipt>");
    </script>
    [/script]

    thanks for all your help in advance!
    Cheers!


  2. #2
    Senior Member
    Join Date
    Mar 2004
    Posts
    301

    sorry - here is the script!

    here is the script sorry:

    "<script language="javascript">
    DOC=document;var data, p;
    var agt=navigator.userAgent.toLowerCase();
    p='http';
    if((location.href.substr(0,6)=='https:')||(locatio n.href.substr(0,6)=='HTTPS:')) {p='https';} data = '&r=' + escape(DOC.referrer) + '&n=' + escape(navigator.userAgent) + '&p=' + escape(navigator.userAgent)
    if(navigator.userAgent.substring(0,1)>'3') {data = data + '&sd=' + screen.colorDepth + '&sw=' + escape(screen.width+ 'x'+screen.height)};
    document.write('<a href="http://redirect.xangahits.com" target="_blank" >');
    document.write('<img border=0 hspace=0 '+'vspace=0 src="http://www.coolcounters.com/counter.php?i=90433' + data + '"></a>');
    document.write("<scr"+"ipt src='http://www.coolcounters.com/counter.js'></scr"+"ipt>");
    </script>
    "
    Cheers!


  3. #3
    Musician/Sound Engineer
    Join Date
    Dec 2003
    Location
    AZ
    Posts
    252
    Ummm, ??
    Mabey you are trying to add a java script to your html page??
    The script usually goes in the 'head' of the page. Between <head> and </head>.

    Or mabey this isn't what you need, can't tell.

  4. #4
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Try [ code][/code] tags, with no space after the first "[".

  5. #5
    Senior Member
    Join Date
    Mar 2004
    Posts
    301
    Code:
    <script language="javascript">
    DOC=document;var data, p;
    var agt=navigator.userAgent.toLowerCase();
    p='http';
    if((location.href.substr(0,6)=='https:')||(location.href.substr(0,6)=='HTTPS:')) {p='https';} data = '&r=' + escape(DOC.referrer) + '&n=' + escape(navigator.userAgent) + '&p=' + escape(navigator.userAgent)
    if(navigator.userAgent.substring(0,1)>'3') {data = data + '&sd=' + screen.colorDepth + '&sw=' + escape(screen.width+ 'x'+screen.height)};
    document.write('<a href="http://redirect.xangahits.com" target="_blank" >');
    document.write('<img border=0 hspace=0 '+'vspace=0 src="http://www.coolcounters.com/counter.php?i=90433' + data + '"></a>');
    document.write("<scr"+"ipt src='http://www.coolcounters.com/counter.js'></scr"+"ipt>");
    </script>

    thank u oldnewbie!
    Cheers!


  6. #6
    Senior Member
    Join Date
    Mar 2004
    Posts
    301
    y does it not work

    its html ok i ll just put it under a .txt format
    Attached Files Attached Files
    Cheers!


  7. #7
    Musician/Sound Engineer
    Join Date
    Dec 2003
    Location
    AZ
    Posts
    252
    Are you asking 'where' this goes on an html page?
    If so, look at the txt file I attached.


    Mike
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center