Welcome to TalkGraphics.com
Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 38

Thread: Iframes and SEO

  1. #11
    Join Date
    Aug 2004
    Location
    Ukraine
    Posts
    3,904

    Default Re: Iframes and SEO

    See attached.
    Attached Files Attached Files
    John.

  2. #12
    Join Date
    Mar 2009
    Location
    SC, USA
    Posts
    186

    Default Re: Iframes and SEO

    John - VERY interesting. I need to shake off the cobwebs and take a close look at this. Certainly the output will enable the SE's to read the content!

  3. #13
    Join Date
    Mar 2009
    Location
    SC, USA
    Posts
    186

    Default Re: Iframes and SEO

    John - I have been working with this and its looks very good. However I have a problem and a question:

    1. Problem? When the text exceeds the length of the page the scrolling box only seems to display the amount that that matches the page length.

    2. Is there a way to avoid the user seeing the horizontal scroll control when the text is not as wide as the window?

  4. #14
    Join Date
    May 2009
    Location
    Germany
    Posts
    145

    Default Re: Iframes and SEO

    Hi John,
    i see in the source of your example the following script:
    HTML Code:
    <!--
     function xr_rx(){var ww=document.documentElement.clientWidth;
    xr_dx=(ww-parseInt(xr_xr.style.width))/2;var i=-parseInt(xr_xr.style.width)/2;if(xr_dx<0){i-=xr_dx;xr_dx=0;};xr_xr.style.marginLeft=i+"px";document.body.style.backgroundPosition=xr_dx+"px 0px";};
    function xr_nn() {return(true);};
    window.onresize=xr_rx;
    --> </script>
    where do you put this code? I can't see a placeholder for it.

    Sebastian
    Last edited by Sebastian; 19 December 2009 at 04:50 PM.

  5. #15
    Join Date
    Mar 2009
    Location
    SC, USA
    Posts
    186

    Default Re: Iframes and SEO

    Quote Originally Posted by Sebastian View Post
    Hi John,
    i see in the source of your example the following script:
    PHP Code:
    <!--
     function 
    xr_rx(){var ww=document.documentElement.clientWidth;
    xr_dx=(ww-parseInt(xr_xr.style.width))/2;var i=-parseInt(xr_xr.style.width)/2;if(xr_dx<0){i-=xr_dx;xr_dx=0;};xr_xr.style.marginLeft=i+"px";document.body.style.backgroundPosition=xr_dx+"px 0px";};
    function 
    xr_nn() {return(true);};
    window.onresize=xr_rx;
    --> 
    </script> 
    where do you put this code? I can't see a placeholder for it.

    Sebastian
    Sebastian - Php? Just embed the code into your website as is and the javascript code will be generated on export. No placeholder code involved.

  6. #16
    Join Date
    May 2009
    Location
    Germany
    Posts
    145

    Default Re: Iframes and SEO

    Hi,
    Quote Originally Posted by V12CatMan View Post
    Sebastian - Php? Just embed the code into your website as is and the javascript code will be generated on export. No placeholder code involved.
    i used the wrong tags when i writing my post, sorry.
    If i create a website from scratch, the mentioned javascript function is not generated during export.

    Sebastian

  7. #17
    Join Date
    Mar 2009
    Location
    SC, USA
    Posts
    186

    Default Re: Iframes and SEO

    Quote Originally Posted by Sebastian View Post
    Hi,

    i used the wrong tags when i writing my post, sorry.
    If i create a website from scratch, the mentioned javascript function is not generated during export.

    Sebastian
    Sebastian - If you import/merge John's .xar file into your website and then export your website are you saying it does not work?

    John - Would a php include be another solution - for both SE's and also to make editing the text easier? Something like this in the placeholder:

    <div style="overflow:auto; height:330px; width:450px;">
    <?php include "text_file.htm"; ?>
    </div>

    I tried this but I cannot seem to get it to work. I stripped everything out of the exported html file everything except the "body" stuff and renamed index.htm index.php. I tried to preview it in EW2 with php support on but it does not display. Any thoughts?

  8. #18

    Default Re: Iframes and SEO

    Interesting John, if a little convoluted. But how would you get rid of the ugly horizontal scroll bar?

  9. #19
    Join Date
    Mar 2009
    Location
    England
    Posts
    2,044

    Default Re: Iframes and SEO

    Clip property to the rescue :-)

    Modified version of Covoxer's file below.
    Attached Files Attached Files

  10. #20
    Join Date
    May 2004
    Location
    Los Angeles
    Posts
    95

    Default Re: Iframes and SEO

    Sledger...

    the horizontal scroll bar is there in case you are going to use the whole page within the frame, however if you wish you can just move the placeholder (in the frame end layer) left - close to the content layer as you desire.

 

 

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
  •