chrometweaks.org

Has anyone used vistaprint for iPage web hostING?

Click Here To View All Answers...


Question I have... Has anyone used vistaprint for iPage web hostING? Thanks in advance for any comment. My 2nd question... I have a iPage site I made using DW. I want to take all the JS out of the code and move it to external files..

I made a folder called scripts to hold all the .js files..

I put the call :<scripttype="text/javascript"language="javascript"src="scripts/nameoffile.js"></script> in between the the div tags in the code..

After doing that and testing, I'm not getting an image to show up in the layer..

THe js file nameoffile.js does not have any tags wrapped around the code..

Is there a problem?..

Comments (10)

I'm stumped. I'm not so sure what is the answer to your question. I'll do some investigation and get back to you if I find an good answer. You should email the people at iPage as they probably can help you..

Comment #1

Still learning, but to answer you're question, I know 22.6 percent of it.EOM..

Comment #2

<scripttype="text/javascript"language="javascript"src="scripts/nameoffile.js"></script>.

All I can see is that the contents of the tag areallruntogether. You'll need this instead:.

<script type="text/javascript" language="javascript" src="scripts/nameoffile.js"></script>..

Comment #3

Look don't be.

We all learn each day something new..

And at this forum, I sure that they are experts.

And rockies.....

Since You are using Dreamweaver,.

View the source of your page..

Than search for tha tag the above I mention.

Between the tags that I mention; delete the.

Old one..

Make a backup file....

Ok?..

Comment #4

To do in this topic and still no go. Here's the script in the .js file (as you see it):.

// Kaosweaver Live Clock Start.

Function class_clock(f,s,c,b,w,h,d,m) { // Copyright 2002 by Kaosweaver, All rights reserved.

This.b=b;this.w=w;this.h=h;this.d=d;.

This.o='<font style="color:'+c+'; font-family:'+f+'; font-size:'+s+'pt;">';.

If (m==1) this.o+=doDate("W0","%20%20%20%20","M1","%20%20","D1",",%20%20","Y0","%20%20%20%20%20");.

}.

Var clock=new class_clock("Arial, Helvetica, sans-serif","10","#00FF99","#000000","287",1,1,1).

// If the clock's size needs adjusting, change the 287 above..

D=document.

If (d.all || d.getElementById) {d.write('<span id="activeClock" style="width:'+clock.w+'px; background-color:'+clock.b+'"></span>'); }.

Else if (d.layers) {d.write('<ilayer bgcolor="'+clock.b+'" id="wrapClock"><layer width="'+clock.w+'" id="activeClock"></layer></ilayer>'); }.

Else {KW_doClock(1);}.

Function KW_doClock(a) { // Copyright 2002 by Kaosweaver, All rights reserved.

D=document;t=new Date();p="";dClock=""; if (d.layers) d.wrapClock.visibility="show";.

H=t.getHours();m=t.getMinutes();s=t.getSeconds();if (clock.h).

{p=(h>11)?"PM":"AM";h=(h>12)?h-12:h;h=(h==0)?12:h;}if (clock.d).

{m=(m<=9)?"0"+m:m; s=(s<=9)?"0"+s:s;} dClock = clock.o+h+':'+m+':'+s+' '+p+'</font>';.

If (a) {d.write(dClock);}if (d.layers) {wc = document.wrapClock;lc = wc.document.activeClock;.

Lc.document.write(dClock);lc.document.close();.

} else if (d.all) { activeClock.innerHTML = dClock;.

} else if (d.getElementById) {d.getElementById("activeClock").innerHTML = dClock;}.

If (!a) setTimeout("KW_doClock()",1000);.

}.

Function doDate(){ // Copyright 2002 by Kaosweaver, All rights reserved..

Var t=new Date(),a=doDate.arguments,str="",i,a1,lang="1";.

Var month=new Array('January','Jan', 'February','Feb', 'March','Mar', 'April','Apr', 'May','May', 'June','Jun', 'July','Jul', 'August','Aug', 'September','Sep', 'October','Oct', 'November','Nov', 'December','Dec');.

Var tday= new Array('Sunday','Sun','Monday','Mon', 'Tuesday','Tue', 'Wednesday','Wed','Thursday','Thr','Friday','Fri','Saturday','Sat');.

For(i=0;i<a.length;i++) {a1=a[i].charAt(1);switch (a[i].charAt(0)) {.

Case "M":if ((Number(a1)==3) && ((t.getMonth()+1)<10)) str+="0";.

Str+=(Number(a1)>1)?t.getMonth()+1:month[t.getMonth()*2+Number(a1)];break;.

Case "D": if ((Number(a1)==1) && (t.getDate()<10)) str+="0";str+=t.getDate();break;.

Case "Y": str+=(a1=='0')?t.getFullYear():t.getFullYear().toString().substring(2);break;.

Case "W":str+=tday[t.getDay()*2+Number(a1)];break; default: str+=unescape(a[i]);}}return str;.

}.

// Kaosweaver Live Clock End.

<MM:BeginLock translatorClass="KW_LC" type="script" depFiles="" orig="%3C!%20KW%20Live%20Clock%20%3E">8:35:32 2/18/103<MM:EndLock>..

Comment #5

Make a new text file called.

Test.js.

And just put this in it:.

Document.write("test from external file");.

Alter your link to point to this file for a moment, upload it all and try it out. This will verify if it is the calling of the external file that fails, or else something within the file that fails to run...

Comment #6

I already know the code is fine, it worked fine before I moved it to an external file. I'm just doing something wrong in the linking..

Recap on what changed:.

I moved that call (mentioned above) to in between the same two div> tags the ENTIRE clock code was once in and moved the ENTIRE clock code to the external .js file..

Note that the new .js file has NO tags ( which I think is right)..

Check out the remote iPage site :.

Www.bassanglersofsandiego.pair.com.

BTW, how does this ranking thing go? I just noticed I'm level 2, what's that mean?..

Comment #7

As it will take only 5 minutes to try it, just try the other file for a moment. It will either show that you made a silly error somewhere, or it will confirm that you were right..

Level 2? You go up a level after certain numbers of posts. Use the forum search, and you'll find a lot of information about that, as well as details of the names and number of posts for each level...

Comment #8

Ok, the test.js file didn't work either, which tells it has to be linking, I tried <script type="text/javascript" language="javascript" src="scripts/test.js"></script> and <script type="text/javascript" language="javascript" src="../scripts/test.js"></script> what else is there?..

Comment #9

Erase everything out of your mind and focus!.

Open Notepad, type.

Document.write("Testing");.

And save it as.

Testing.js.

In the scripts directory..

(BTW where is your scripts directory in relation to your html file? I am assuming your scripts directory is in the directory where your html files are. The.

..

Means current directory and.

...

Means go one dir down).

In your page, add the following, NOT IN THE HEAD, but in the place that you would like the date to appear (in the BODY):.

<script type="text/javascript" src="scripts/testing.js"></script>.

It should work. I use the same concept in my webpage...

Comment #10

Read my post called "what's the point?". I'm about to give up on this, seems pointless anyways. Isn't external linking just internal redirection creating an unneccessary path (which in turn takes more time)?..

Comment #11


This question was taken from a support group/message board and re-posted here so others can learn from it.