Qbasicnews.com

Full Version: New Design.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Oh...cool..you did it..with JavaScript, right?
Quote:I don't know about css. Does that work? where should I place that line?

Oh, right. What you do is:

Code:
<html>
<head>
<style type = "text/css">
<!--
div.theannoyingadframe {display: hide;}

</style>
<frameset>
<frame class="theactualcontentofthesite">
...
<frame class="theannoyingadframe">
...
</frameset>
</html>

I think that's how it will work. I haven't had too much experience with frames, though. Basically, you give the frame that you want to hide a class, then in the stylesheet you say "I don't want to see it". Now with a style of display: hide, what should happen is that the display of the frame is supressed, but it still takes up its space. If you want to completely remove the frame, change display: hide; to display: none;. However, that is effectively like removing it from the source, so play with the other frame to suit (width of *).

I will say it again: it is untested, but should work. It works for me when supressing <div>s and other things.
Well, I'll try it, but I don't think it will be that easy. Look at what lycos adds. My original html was:

Code:
<html>
<head>
   <link rel="stylesheet" href="style.css" type="text/css">
   <title>_.'~'._ QB%uX _.'~'._</title>

<STYLE TYPE="text/css">
<!-- /* $WEFT -- Created by: Na Than Assh Antti (na_th_an@hotmail.com) on 28/01/03 -- */
  @font-face {
    font-family: Sydnie;
    font-style:  normal;
    font-weight: normal;
    src: url(SYDNIE0.eot);


</STYLE>

</head>

<body>
    
    <table width="100%" height="100%"><tr valign="center"><td valign="center">
        <center>&
        <table width="90%" height="90%">
            <tr valign="center">
                <td valign="center" bgcolor=#666666>
                    <font face="Sydnie" color="#FFFFFF" size="+1">
                    <p align="center">
                    <font size="+2">Welcome to</font><br>
                    <font size="+4">QB$uX</font>
                    <p align="center">
                        The Odd QB home of <b>Na Than Assh Antti</b>                    
                    
                    <p align="center"><table><tr><td bgcolor="#CCCCCC">
                        <font face="Sydnie" color="#FFFFFF" size="+1">
                        <a href="index2.html">Enter?</a>
                        </font>
                    </td></tr></table>
                    </font>
                </td>
            </tr>
        </table>
        </center>
    </td></tr></table>
    
</body>

</html>

And after the additions, it becomes:

Code:
<script language="javascript">

if(window == window.top) {
        var address=window.location;
        var s='<html><head><title>'+'</title></head>'+
        '<frameset cols="*,140" frameborder="0" border="0" framespacing="0" onload="return true;" onunload="return true;">'+
        '<frame src="'+address+'?" name="memberPage" marginwidth="0" marginheight="0" scrolling="auto" noresize>'+
        '<frame src="http://ads.tripod.lycos.es/ad/google/frame.php?_url='+escape(address)+'" name="LycosAdFrame"  marginwidth="0" marginheight="0" scrolling="auto" noresize>'+
        '</frameset>'+
        '</html>';

        document.write(s);      
}
</script>
<html>
<head>
   <link rel="stylesheet" href="style.css" type="text/css">
   <title>_.'~'._ QB%uX _.'~'._</title>

<STYLE TYPE="text/css">
<!-- /* $WEFT -- Created by: Na Than Assh Antti (na_th_an@hotmail.com) on 28/01/03 -- */
  @font-face {
    font-family: Sydnie;
    font-style:  normal;
    font-weight: normal;
    src: url(SYDNIE0.eot);


</STYLE>

</head>

<body>
    
    <table width="100%" height="100%"><tr valign="center"><td valign="center">
        <center>&
        <table width="90%" height="90%">
            <tr valign="center">
                <td valign="center" bgcolor=#666666>
                    <font face="Sydnie" color="#FFFFFF" size="+1">
                    <p align="center">
                    <font size="+2">Welcome to</font><br>
                    <font size="+4">QB$uX</font>
                    <p align="center">
                        The Odd QB home of <b>Na Than Assh Antti</b>                    
                    
                    <p align="center"><table><tr><td bgcolor="#CCCCCC">
                        <font face="Sydnie" color="#FFFFFF" size="+1">
                        <a href="index2.html">Enter?</a>
                        </font>
                    </td></tr></table>
                    </font>
                </td>
            </tr>
        </table>
        </center>
    </td></tr></table>
    
</body>

</html>

</pre></xmp></noscript>

<script language="javascript" src="http://ads.tripod.lycos.es/ad/test_frame_size.js"></script>
<script language="javascript">
if (!AD_clientWindowSize()) {
        document.write("<NOSC"+"RIPT>");
}
</script>
<script type="text/javascript">
        function setCookie(name, value, expires, path, domain, secure) {
           var curCookie = name + "=" + escape(value) +
             ((expires) ? "; expires=" + expires.toGMTString() : "") +
             ((path) ? "; path=" + path : "") +
             ((domain) ? "; domain=" + domain : "") +
             ((secure) ? "; secure" : "");
           document.cookie = curCookie;
        }

        var ad_url = "http://ads.tripod.lycos.es/ad/google/frame.php?_url="+escape(self.location);
        var ref=window.document.referrer;

        if(parent.LycosAdFrame) {
                if(parent.memberPage && parent.memberPage.document.title ) {
                        parent.document.title=parent.memberPage.document.title;
                }

                if(parent.LycosAdFrame && parent.LycosAdFrame.location && (ref != "" && (ref+"?" != window.location) && (ref.substr(ref.length-1,1) != "/")) ) {
                        parent.LycosAdFrame.location.href=ad_url;
                }
                setCookie("adFrameForcePHP",0,0," ");
        }
        else if(top.LycosAdFrame && top.LycosAdFrame.location) {
                if ((ref != "" && (ref+"?" != top.window.location) && (ref.substr(ref.length-1,1) != "?"))) {
                        top.LycosAdFrame.location.href=ad_url;
                }
                setCookie("adFrameForcePHP",0,0," ");
        }
        else {
                if (!window.opener) {
                        setCookie("adFrameForcePHP",1,0," ");
                }
                else {
                        setCookie("adFrameForcePHP",0,0," ");
                }
        }
</script>
<script type="text/javascript" src="http://ads.tripod.lycos.es/ad/ad.php?cat=noref&mkw=&CC=es&ord=3f40b111&adpref="></script>

Note that there are additions at the beginning and at the end, and that the frames are written to the document using Java.
Naah... you'll be fine. Just alter the lycos code to document.write a class for the frame. I'll try it myself when I get home (6 hrs).
Okay, I'll wait for that. I have 0 knowledge in css/javascript so what you are saying looks like chinese to me Smile. Thanks in advance.
I'm still working on it (8pm here, time for off computer and have a life), not too much progress but I'll work on it tomorrow.
Hey, don't work so hard on it. I can always find another host Smile But thank you anyway.

It seems that their protection scheme has became thougher to break. The old (floating ad box) was really easy to remove.
Yeah, I'm having trouble removing the frame using CSS, but what if I was just to make the content invisible, so then you could use the frame for yourself? Would that be ok? How does lycos check to see you have the ad frame?
I dunno. I only know that lycos add the code I showed you, and that all my efforts adding strange <noscripts> tags did not work.
I think I can get it to work alright if you don't mind having an invisible frame (or if you want to use their frame instead of one you have). Interested?
Pages: 1 2 3