Virtual Mechanics: Community Forums and FAQs
Virtual Mechanics: Community Forums and FAQs
WebDwarf, SiteSpinner, SiteSpinner Pro 'How do I...'
Links within an iFrame|
Go
![]() |
New
![]() |
Find
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
|
Working Mechanic |
This is my first entry on this site. I've been lifting ideas and instructions from here for several months. Thanx for that from a former prowler.
For now -- I need help in creating the right kind of links from objects within an iFrame. As I understand it, the iFrame serves as a window to a page other than the "hosting" page. My "hosting" page will serve to display videos. The page within the iFrame will have clickable icons. What I want to happen is this: When the user clicks on an icon within the iFrame, it makes the selected video visible on the "hosting" page. Is this possible? And if so, how is it done? Thanx in advance. |
||
|
|
Guru 'Geezer' Mechanic |
When you make your link, in the Code box, enter:
to open in the i-frame - target='_self'to open in page holding the i-frame - target='_parent'or target='_top' |
|||
|
|
Working Mechanic |
Thanx for the quick response.
I tried cutting and pasting each of the lines of code you provided, but none of them seem to work correctly. I must be missing something else. When I use the code "target-"_self'" it does as I'd expected ... it opens the linked object within the iFrame. But when I use the code "target='_parent'" it also opens the linked object within the iFrame, and when I use the code "target='_top'" it opens the linked object in a new window instead of either the parent or iFrame window. Does the linked object need to be coded also? Thanx for whatever help you can provide. |
|||
|
|
Guru 'Geezer' Mechanic |
The quick 3-page project I tested with worked as I described. Can you post a link to your test page?
|
|||
|
|
Working Mechanic |
The little lady is giving me the evil eye. I'll get back to this tomorrow.
Thanx for your help. |
|||
|
|
Working Mechanic |
I'll have to re-do the pages, as it's for a website that isn't up and running yet. I'll try to add a couple pages to my existing webste:
www.3actors.com. Thanx again for taking the time to help. |
|||
|
|
Working Mechanic |
Jim476 - I have nothing I can add on this subject, too new myself, but stick with Larryd and he'll get you where you want to go. He's been great help to me.
What I'd like to know from you is where you got the code for the scrolling text field on the left side of your home page - I can see a big need for this feature on my next project. You can email me at my personal email (check my profile) if you would be so kind, so that we don't take up forum space on this subject. Thanks, Scott This message has been edited. Last edited by: rscott, |
|||
|
|
Honorary 'Creative' Mechanic |
Jim seems to use a simple marquee. Here are some marquee codes. If you search 'marquee' on google you'll find plenty more.
|
|||
|
|
Guru 'Geezer' Mechanic |
rscott,
FYI, you should not put your email address in a forum post. Bots scan this site and it will probably be harvested. Instead, put it in your public profile. You may want to edit your previous post and obscure your email address. |
|||
|
|
Working Mechanic |
Thanks Larryd, Roma made the same suggestion in an email... I don't know why I didn't think about that danger. My post has been altered. |
|||
|
|
Working Mechanic |
rscott: As Roma suggests, I lifted the marquee code from an online site and tweaked it to fit my purposes.
Roma: Yes, I've been stealing larry's ideas for quite a while now. Larry: Still working on it. I wonder, does it affect the link if my "top" page is the "index" page? I notice on your website that you're not using the index page for your "top" page. Again, thanx for the time. I'll keep plugging away. |
|||
|
|
Guru 'Geezer' Mechanic |
Actually, my site does use a top index.html page, but it contains 4 frames to hold each section of content.
I really do not know why a target of _parent isn't working for you. To break out of an i-frame is the purpose of that type of target. _top should do the same, but may be effected by a browser setting. |
|||
|
|
Working Mechanic |
Larry: Thanx again.
Is there some way I can check to see if I've, indeed, made my index page the parent of the iFramed page? Sorry to ask such basic questions. |
|||
|
|
Guru 'Geezer' Mechanic |
|
|||
|
|
Working Mechanic |
Larry: I just had a "duh" moment, when I realized I've not been explaining exactly what I'm looking for.
As a matter of fact, your earlier instructions DO work for me. I have been opening the video/picture within the iFrame on the parent page ... Duh! Here's the problem: I want the link within the iFrame to open a different video (or picture, etc.) within a DIFFERENT iFrame on the parent page. I believe that's what you'e doing on your "LowTechGeezer's Sitespinner Pages." If I'm eyeballing that correctly, you have an iFrame on the left with the buttons. When you click on a button in that iFrame, it opens material in an iFrame on the middle of the parent page. Is that correct? If so, what are the magic code words for that? Thanx again in advance. This message has been edited. Last edited by: jim476, |
|||
|
|
Guru 'Geezer' Mechanic |
In your link editor, make sure your Link Type is blank, and in the URL enter:
javascript:void(0);Then in the Code field, enter onclick="parent.frames['geo1'].location='page3.html'";changing geo1 to the name of the i-frame you want to load and page3.html with the page you want to load. Make sure you retain the double and single quotes or the code will not be recognized properly. Since I use this code quite a lot on my site, I wrapped it inside a script, then executed the script passing the page link as a parameter. If you're going to use this a lot, I can give you the script also. |
|||
|
|
Working Mechanic |
OMG!!! Looks like a very good resource Roma. Thank you. Jim476, is that (see Roma's link) where you got your code, or was it someplace else (not that it matters)? This must be the same type of code ("marquee") used at another site I saw today following a URL (http://abcdominicano.com/) on the forum, that has letters that fall from the top of the window and hit an imaginary line and bounce... SUPER COOL! Thanks, Scott |
|||
|
|
Working Mechanic |
Larry:
Hip-hip-hooray! You did it. You managed to give instructions that even I could understand. It seems to be working now. I'll know more this coming week as I start populating the project with videos (I'm currently using photos as placeholders). Terrific! Thanx in bunches for your help. |
|||
|
|
Working Mechanic |
rscott --
I don't recall which site I lifted my marquee code from, but as I recall it, it wasn't nearly as comprehensive as the one Roma supplied. I'll have to check it out more thoroughly for my own use. Roma -- Thanx. |
|||
|
|
Honorary Mechanic |
I know I'm in the minority, but I absolutely hate scrolling marqees, LOL! Especially when there is some other animation on the same page. For me, they induce a migraine attack, so I avoid them like the plague.
On one site, the customer wanted two animations, so I built in a warning and allowed visitors to mouseover to stop the animation running. There are some objects I've seen (can't think what they are called) where there is no apparent 'stuttering' across the screen and they don't affect me at all. I sent an e-mail to a UK national company about a flashing ad they were running, which could affect epileptics and those suffering from migraine (banned by Google et al). They were so apologetic and said they hadn't realised.....and immediately pulled the ad. It was re-released in a different format the following week. I have no idea what percentage of people are affected in this way, but as I don't want that percentage to avoid my sites, I will never use marquees, though as I say, some 'rolling' ads don't cause me (or others I know) a problem. A small issue, but perhaps something to consider? mccifa |
|||
|
| Powered by Eve Community | Page 1 2 |
| Please Wait. Your request is being processed... |
|

