Adblock breaks this site

wanting to embed.

Discussion in 'Web Programming' started by mopar-user, Mar 30, 2009.

  1. mopar-user

    mopar-user Guru
    Banned

    Joined:
    Jul 23, 2007
    Posts:
    1,188
    Referrals:
    1
    Sythe Gold:
    0
    wanting to embed.

    I am trying to embed a link to a site. When the page opens, I want the link to open automatically. Any help? I've tried multiple ways and Google failed me.
     
  2. SuF

    SuF Legend
    Pirate Retired Global Moderator

    Joined:
    Jan 21, 2007
    Posts:
    14,212
    Referrals:
    28
    Sythe Gold:
    1,234
    Discord Unique ID:
    203283096668340224
    <3 n4n0 Two Factor Authentication User Community Participant Spam Forum Participant Sythe's 10th Anniversary
    wanting to embed.

    What do you mean? :/
     
  3. mopar-user

    mopar-user Guru
    Banned

    Joined:
    Jul 23, 2007
    Posts:
    1,188
    Referrals:
    1
    Sythe Gold:
    0
    wanting to embed.

    When i open a notepad html file....I want it to go directly to the site on a certain part of the page. Like a panel for the site. Get what I'm saying?
     
  4. hampe-92

    hampe-92 Forum Addict

    Joined:
    Jul 10, 2008
    Posts:
    328
    Referrals:
    0
    Sythe Gold:
    0
    wanting to embed.

    erm, no =|
     
  5. mopar-user

    mopar-user Guru
    Banned

    Joined:
    Jul 23, 2007
    Posts:
    1,188
    Referrals:
    1
    Sythe Gold:
    0
    wanting to embed.

    ok fine ill just put code if tried using....


    Code:
    <embed width = 500 height = 500 src = "link goes here"> </embed>
    that doesnt work because I have no idea and fail at html. But I'm trying to get it to load a site in a measure out box.
     
  6. hampe-92

    hampe-92 Forum Addict

    Joined:
    Jul 10, 2008
    Posts:
    328
    Referrals:
    0
    Sythe Gold:
    0
    wanting to embed.

    hmm.. if I got it right this javascript should help...
    Code:
    onLoad="javascript: window.open('http://www.google.com','','scrollbars=yes,menubar=yes,height=500,width=500,resizable=yes,toolbar=yes,location=yes,status=yes');"
    put that in the body tag of your page..

    eg.
    Code:
    <html>
    <head></head>
    <body onLoad="javascript: ....." >
    content...
    </body>
    </html>
     
  7. mopar-user

    mopar-user Guru
    Banned

    Joined:
    Jul 23, 2007
    Posts:
    1,188
    Referrals:
    1
    Sythe Gold:
    0
    wanting to embed.

    omg if that works....i thank you.
     
  8. hampe-92

    hampe-92 Forum Addict

    Joined:
    Jul 10, 2008
    Posts:
    328
    Referrals:
    0
    Sythe Gold:
    0
    wanting to embed.

    it works, the question is if I got you right... and if it does what you want..

    EDIT; opening a page like that on load will most certainly make the browser block it since it's a pop up window..
     
  9. mopar-user

    mopar-user Guru
    Banned

    Joined:
    Jul 23, 2007
    Posts:
    1,188
    Referrals:
    1
    Sythe Gold:
    0
    wanting to embed.

    well i will see tomorrow
     
  10. hampe-92

    hampe-92 Forum Addict

    Joined:
    Jul 10, 2008
    Posts:
    328
    Referrals:
    0
    Sythe Gold:
    0
    wanting to embed.

    why not just create a simple html file and add that and the open it? then you can tell directly if it does what you want...
     
  11. mopar-user

    mopar-user Guru
    Banned

    Joined:
    Jul 23, 2007
    Posts:
    1,188
    Referrals:
    1
    Sythe Gold:
    0
    wanting to embed.

    im on linux comp and im at library. doesnt work lol....tried already

    EDIT: you know about C++?
     
  12. hampe-92

    hampe-92 Forum Addict

    Joined:
    Jul 10, 2008
    Posts:
    328
    Referrals:
    0
    Sythe Gold:
    0
    wanting to embed.

    ah ok..

    nah not very much... why?
     
  13. mopar-user

    mopar-user Guru
    Banned

    Joined:
    Jul 23, 2007
    Posts:
    1,188
    Referrals:
    1
    Sythe Gold:
    0
    wanting to embed.

    im trying to get number to be completely randomly generated and it doesnt work. it generates it in a sequence.....its rather annoying.
     
  14. hampe-92

    hampe-92 Forum Addict

    Joined:
    Jul 10, 2008
    Posts:
    328
    Referrals:
    0
    Sythe Gold:
    0
    wanting to embed.

    we take that in the c++ section, shall we?
     
  15. mopar-user

    mopar-user Guru
    Banned

    Joined:
    Jul 23, 2007
    Posts:
    1,188
    Referrals:
    1
    Sythe Gold:
    0
    wanting to embed.

    Thanks hampe. Code you provided worked great. Had to make pop up blocker accept it but other than that....Perfect.
     
  16. hampe-92

    hampe-92 Forum Addict

    Joined:
    Jul 10, 2008
    Posts:
    328
    Referrals:
    0
    Sythe Gold:
    0
    wanting to embed.

    I'm glad to help :)
     
< PHP/SQL Time Issues... | looking for helper >


 
 
Adblock breaks this site