Welcome to TalkGraphics.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2005
    Posts
    2

    Default

    Please can you help:

    I have an urgetn issue with my website and my Live8 Pages - The frames are not working and open up a page in their own right.

    I'm a bit of a novice at all this, but thought i'd got this right!

    I have a main htm page, mostly a table, but within the table is a frame called I1.

    In the menu i'm setting the htm page to open in the url target, and adding I1 in the Target Frame, however this just opens a new page.

    The site is http://www.eurythmics.me.uk/live8/live8.htm

    Thanks in advance for any help given!!

  2. #2
    Join Date
    Sep 2000
    Location
    London, UK
    Posts
    1,436

    Default

    Steve

    To the wire with this one!

    Can you post the content of the .js file that I expect MM generates - the problem is probably there.

    The alternative would be to drop the frames and go for static pages; you could repeat the Annie Lennox pic on each page anyway - the visitor's browser will only get it once.
    Simon
    ------------------------------
    www.tlaconsultancy.co.uk
    www.bricksandbrass.co.uk

  3. #3
    Join Date
    Jul 2005
    Posts
    2

    Default

    Thanks!!!


    //©Xara Ltd
    var clicked="";var gtype=".gif";var selstate="_over";if (typeof(loc)=="undefined" || loc==""){var loc="";if (document.body&&document.body.innerHTML){var tt=document.body.innerHTML;var ml=tt.match(/["']([^'"]*)camden.js["']/i);if(ml && ml.length > 1) loc=ml[1];}}document.write("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr>");tr(false);writeButton(loc +"","../../Live8/live8home.htm","camden_b1",99,15,"Main","I1",0);wr iteButton("","javascript:;","camden_b2",99,15,"Inf o","",0);writeButton(loc+"","../../Live8/Live8Press.htm","camden_b3",99,15,"Press","I1",0); writeButton(loc+"","camden4.html","camden_b4",99,1 5,"London","",0);writeButton(loc+"","camden5.html" ,"camden_b5",99,15,"Edinburgh","",0);tr(true);docu ment.write("</tr></table>");loc="";function tr(b){}function turn_over(name) {if (document.images != null && clicked != name) {document[name].src = document[name+"_over"].src;}}function turn_off(name) {if (document.images != null && clicked != name) {document[name].src = document[name+"_off"].src;}}function reg(gname,name){if (document.images){document[name+"_off"] = new Image();document[name+"_off"].src = loc+gname+gtype;document[name+"_over"] = new Image();document[name+"_over"].src = loc+gname+"_over"+gtype;}}function evs(name){ return " onmouseover=\"turn_over('"+ name + "')\" onmouseout=\"turn_off('"+ name + "')\""}function writeButton(urld,url,name,w,h,alt,target,hsp){gnam e=name;while(typeof(document[name])!="undefined")name+="x";reg(gname,name);tr(true); document.write("<td>");if(alt!="")alt=" alt=\""+alt+"\"";if(target!="")target=" target=\""+target+"\"";if(w>0)w=" width=\""+w+"\"";else w="";if(h>0)h=" height=\""+h+"\"";else h="";if(url!="")url=" href=\""+urld+url+"\"";if(typeof(clx)!="undefined" ){target="";url=" href=\"?"+clx+"\"";alt=" alt=\"Click to edit\"";}document.write("<a "+url+evs(name)+target+">");if(hsp==-1)hsp=" align=\"right\"";else if(hsp>0)hsp=" hspace=\""+hsp+"\"";else hsp="";document.write("<img src=\""+loc+gname+gtype+"\" name=\""+name+"\""+w+h+alt+hsp+" border=\"0\" /></a></td>");tr(false);}

  4. #4
    Join Date
    Sep 2000
    Location
    London, UK
    Posts
    1,436

    Default

    Steve

    One of my brain cells reminded me to get it by doing a Page/Save As...

    The other is struggling with the JavaScript; the problem probably lies in the 'loc' area; if the frame is called 'I1', try adding target="I1" after every file name in the writeButton lines (note you have an empty one at b2).

    [IF THIS DOES NOT WORK, PERHAPS A JAVASCRIPT EXPERT CAN FIX IT!]

    With some returns added to clarify the code:

    //©Xara Ltd
    var clicked="";
    var gtype=".gif";
    var selstate="_over";
    if (typeof(loc)=="undefined" || loc==""){
    var loc="";
    if (document.body&&document.body.innerHTML){
    var tt=document.body.innerHTML;
    var ml=tt.match(/["']([^'"]*)camden.js["']/i);
    if(ml && ml.length > 1) loc=ml[1];
    }
    }
    document.write("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr>");
    tr(false);
    writeButton(loc+"","../../Live8/live8home.htm target=I1","camden_b1",99,15,"Main","_blank",0);
    writeButton("","javascript:;","camden_b2",99,15,"I nfo","",0);
    writeButton(loc+"","../../Live8/Live8Press.htm target=I1","camden_b3",99,15,"Press","live8home.ht m",0);
    writeButton(loc+"","camden4.html target=I1","camden_b4",99,15,"London","",0);
    writeButton(loc+"","camden5.html target=I1","camden_b5",99,15,"Edinburgh","",0);
    tr(true);
    document.write("</tr></table>");
    loc="";

    function tr(b){}
    function turn_over(name) {
    if (document.images != null && clicked != name) {document[name].src = document[name+"_over"].src;
    }
    }

    function turn_off(name) {
    if (document.images != null && clicked != name) {
    document[name].src = document[name+"_off"].src;
    }
    }

    function reg(gname,name) {
    if (document.images){
    document[name+"_off"] = new Image();
    document[name+"_off"].src = loc+gname+gtype;
    document[name+"_over"] = new Image();
    document[name+"_over"].src = loc+gname+"_over"+gtype;
    }
    }

    function evs(name){
    return " onmouseover=\"turn_over('"+ name + "')\" onmouseout=\"turn_off('"+ name + "')\""
    }

    function writeButton(urld,url,name,w,h,alt,target,hsp){
    gname=name;
    while(typeof(document[name])!="undefined")name+="x";
    reg(gname,name);
    tr(true);
    document.write("<td>");

    if(alt!="")
    alt=" alt=\""+alt+"\"";

    if(target!="")
    target=" target=\""+target+"\"";

    if(w>0)w="
    width=\""+w+"\"";
    else w="";

    if(h>0)h="
    height=\""+h+"\"";
    else h="";

    if(url!="")
    url=" href=\""+urld+url+"\"";

    if(typeof(clx)!="undefined"){
    target="";
    url=" href=\"?"+clx+"\"";
    alt=" alt=\"Click to edit\"";
    }
    document.write("<a "+url+evs(name)+target+">");
    if(hsp==-1)
    hsp=" align=\"right\"";
    else if(hsp>0)
    hsp=" hspace=\""+hsp+"\"";
    else hsp="";

    document.write("<img src=\""+loc+gname+gtype+"\" name=\""+name+"\""+w+h+alt+hsp+" border=\"0\" /></a></td>");
    tr(false);
    }
    Simon
    ------------------------------
    www.tlaconsultancy.co.uk
    www.bricksandbrass.co.uk

 

 

Bookmarks

Posting Permissions

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