JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old February 10th, 2005, 11:43 AM
roxana roxana is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Location: Poland
Posts: 6 roxana User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 45 m 11 sec
Reputation Power: 0
Exclamation Need one script plz

Hey, I have my whole site in iframe. I need a script.
When someone visit my videos section (example) go to votm.htm, can't see whole layout, ony that one page.
I need something like 2 seconds redirect after short message to visitor 'you have to visit main site to view this page'.
I'm looking for that script from weeks, I remember one site had it (can't find it now), so it's possible
I hope you know what I mean If not you can check my site www.alicia-keys.net/aliciakeys.htm and page without main layout eg. www.alicia-keys.net/votm.htm
Really need help with this.
Pretty please
much luv

Reply With Quote
  #2  
Old February 10th, 2005, 03:49 PM
Anibal Anibal is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 176 Anibal User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 4 h 20 m 48 sec
Reputation Power: 4
Hey roxana! I don't mean to sound bad..but you haven't looked hard enough. I mean, I sought for five seconds and 20 pages apeared before my eyes with exactly what you need.
Anyway...since I'm a sweet man, here it is...

Use the function: setTimeout("document.location.href=..........",<milisecondstowait>);

The statements in the first argument will execute once the miliseconds on the second argument have passed.

Good Luck

Anibal.

Reply With Quote
  #3  
Old February 12th, 2005, 09:08 AM
roxana roxana is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Location: Poland
Posts: 6 roxana User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 45 m 11 sec
Reputation Power: 0
Hey, I just don't know what exactly I'm looking for lol
and yes, you are sweet man I know html yes, but java script is black hole for me, so I have no idea what I have to do whit this
I will ask google but question - maybe you or anyone can made that kind of script - detect ifame and redirect?
*pretty smile here*

Reply With Quote
  #4  
Old February 12th, 2005, 10:31 AM
roxana roxana is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Location: Poland
Posts: 6 roxana User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 45 m 11 sec
Reputation Power: 0
Exclamation

hey again
I found two scripts, can U made one from these two?
1st
redirect after 2 sec
Code:
 redirTime = "2000";
redirURL = "aliciakeys.htm";
function redirTimer() { self.setTimeout("self.location.href = redirURL;",redirTime); } 


2nd
to main page
Code:
if (window.location.href
== window.top.location.href) {
window.location.href = 'aliciakeys.htm';
}


I need redirect but after 2 seconds, with message to visitor: 'you have to visit main page'
that's all
please
I'm totally newbie with java script, thats why Im requesting whole code.
much luv

Reply With Quote
  #5  
Old February 14th, 2005, 08:57 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 14 m 9 sec
Reputation Power: 8
Why not implement a little bit of trial and error?

that's how "newbies" progress to become "novice"

Rest assured that you do have all the code in front of you...
its just a matter of combining the two...
both your code snippets are practically one line

Reply With Quote
  #6  
Old February 15th, 2005, 08:50 PM
roxana roxana is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Location: Poland
Posts: 6 roxana User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 45 m 11 sec
Reputation Power: 0
I know you know can you just tell me?
that would be nice of you

Reply With Quote
  #7  
Old February 28th, 2005, 05:43 PM
roxana roxana is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Location: Poland
Posts: 6 roxana User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 45 m 11 sec
Reputation Power: 0
grr :|

Reply With Quote
  #8  
Old February 28th, 2005, 06:49 PM
Anibal Anibal is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 176 Anibal User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 4 h 20 m 48 sec
Reputation Power: 4
Hey...that kind of attitude is not going to get you any friends...I agree with MadCowDzz on the matter. You cannot expect to be given all (you have to work for it). Programming is not about the code itself, it's about ideas!

Anyway I can tell you're desperated, and I have been there so..here's the code.

Code:
 
function redirTimer(){
	redirTime = "2000";
	redirURL = "aliciakeys.htm";
	self.setTimeout("self.location.href = redirURL;",redirTime);
}
 


you should place the code onLoad in the <body> tag on the main page.

Good Luck..

Anibal.

Reply With Quote
  #9  
Old March 3rd, 2005, 10:05 AM
roxana roxana is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Location: Poland
Posts: 6 roxana User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 45 m 11 sec
Reputation Power: 0
Hey, I'm not looking friends, I found that board and thought you can help me. I know you have big heads and know everything about java and stuff, I just needed help, no lesson. I will not learn java script, I wanted to get script, so I asked for it. I saw that someone has problems to gave it to me, but why? I had to wait almost month to get any help from here. 'Where is the love' ? lol
This is not that script I needed, but really thank you. You see, this one redirecting page when it is in iframe, so its useless
(sorry for my english)
thanks again Anibal

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > Need one script plz


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT