summon codes!

Discussion in 'HTML & Website Design' started by surfer33, Jul 11, 2007.

  1. #1
    i want summon a code from my server
    4 example i have a fram code or others...
    but i dont want insert that straight in my pages
    i want summon that!
    4 exam:
    <script language="javascript" src="http://ww.yoursite.com/fram-code.js"></script>

    i can insert my code in the adbrite-code.js?


    this code:
    <iframe src="http://yoursite.com" width="300px" height="300px">
    </iframe>
     
    surfer33, Jul 11, 2007 IP
  2. surfer33

    surfer33 Banned

    Messages:
    212
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    i want this:

    i have i frame code (HTML)
    <iframe src="http://google.com" width="300px" height="300px">
    </iframe>

    but i want that into the js file!
    i want iframe code with javascript!!!

    U have it?
     
    surfer33, Jul 11, 2007 IP
  3. surfer33

    surfer33 Banned

    Messages:
    212
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    this is :?



    if (!IFrameObj && document.createElement) {
    // create the IFrame and assign a reference to the
    // object to our global variable IFrameObj.
    // this will only happen the first time
    // callToServer() is called
    try {
    var tempIFrame=document.createElement('iframe');
    tempIFrame.setAttribute('id','RSIFrame');
    tempIFrame.style.border='0px';
    tempIFrame.style.width='0px';
    tempIFrame.style.height='0px';
    IFrameObj = document.body.appendChild(tempIFrame);

    if (document.frames) {
    // this is for IE5 Mac, because it will only
    // allow access to the document object
    // of the IFrame if we access it through
    // the document.frames array
    IFrameObj = document.frames['RSIFrame'];
    }
    } catch(exception) {
    // This is for IE5 PC, which does not allow dynamic creation
    // and manipulation of an iframe object. Instead, we'll fake
    // it up by creating our own objects.
    iframeHTML='\<iframe id="RSIFrame" style="';
    iframeHTML+='border:0px;';
    iframeHTML+='width:0px;';
    iframeHTML+='height:0px;';
    iframeHTML+='"><\/iframe>';
    document.body.innerHTML+=iframeHTML;
    IFrameObj = new Object();
    IFrameObj.document = new Object();
    IFrameObj.document.location = new Object();
    IFrameObj.document.location.iframe = document.getElementById('RSIFrame');
    IFrameObj.document.location.replace = function(location) {
    this.iframe.src = location;
    }
    }
    }
     
    surfer33, Jul 11, 2007 IP
  4. surfer33

    surfer33 Banned

    Messages:
    212
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    ??????????????????????????????????????????
     
    surfer33, Jul 12, 2007 IP
  5. surfer33

    surfer33 Banned

    Messages:
    212
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    ????????????????????????/
     
    surfer33, Jul 12, 2007 IP
  6. surfer33

    surfer33 Banned

    Messages:
    212
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    ?????????????????????????????
     
    surfer33, Jul 12, 2007 IP