Buying Javascript to check if embed code is changed

Discussion in 'Programming' started by Alex69, Dec 8, 2009.

  1. #1
    I need a javascript code that will check if the embed code provided on my website was not changed when used on someone elses website. Embed uses iframe but javascript from iframe is supposed to be able to check the document iframe is in.

    This is a sample of embed code:

    <div style="background:#FFFFFF; font:Arial; color:#000000; font-size:12px; width:468px"><b>ANY VALUE</b> // <a href="http://www.domain.com/" target="_blank" style="color:#0000FF;">TEXT</a> on <a href="http://www.domain.com/" target="_blank" style="color:#0000FF;">http://www.domain.com</a><iframe name="stream" src ="http://www.domain.com/embeded.php?Id=ANY VALUE" width="468px" height="352px" frameborder="0" style="padding:0px; margin:0px;" scrolling="no" ></iframe></div>

    in case above was changes script should open other page in iframe
     
    Alex69, Dec 8, 2009 IP
  2. travelmoth

    travelmoth Active Member

    Messages:
    153
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    try: document.lastModified
     
    travelmoth, Dec 9, 2009 IP