Forums
New posts
New posts
Search forums
Market
Domains/Websites Wanted
.com Domain Market
gTLD Domain Market
ccTLD Domain Market
Web3 Domain Market
Third-Level Domain Market
Adult Domain Market
What's New
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Account Upgrade
Premium Members Directory
Log in
Register
What's New
calendar
Search
Search
Search titles only
By:
New posts
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Enjoy unlimited access to all forum features for FREE! Optional upgrade available for extra perks.
Forums
Diamond Forums
Need Code Help
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="moreuplink" data-source="post: 2233012" data-attributes="member: 322608538"><p>i have a click pop up and have two links. If i click on first link, it should show first image and if i click on the second link then it should bring up second image but my code is not doing it. here is the code and help will appreciated. I need to create a loop.</p><p>==============================</p><p><script type="text/javascript"> </p><p> jQuery(document).ready(function(){</p><p> if (document.cookie.indexOf('visited=true') == 1) {</p><p> var fifteenDays = 1000;</p><p> var expires = new Date((new Date()).valueOf() + fifteenDays);</p><p> document.cookie = "visited=true;expires=" + expires.toUTCString();</p><p> $.colorbox({width:"auto", inline:true, href:"#subscribe"});</p><p> }</p><p> </p><p> $(".open_popup").colorbox({width:"730px", inline:true, href:"#subscribe"});</p><p> </p><p>});</p><p></script></p><p></head></p><p><body></p><p><?php</p><p> $a=1;</p><p> while($a<=2){</p><p> ?></p><p><a href="#" class="open_popup"><?php echo $a++ ?>Click here to open the popup</a></p><p><br /></p><p><?php } ?></p><p></p><p><div style="display: none;"></p><p> <!-- Start Subcribe Box --></p><p> <div id='subscribe' style='padding: 9px; background:#ffffff;'></p><p> <h2 class="offerTitle"><strong><u><span style="color: #000000">i want to show here id 1 & when i click on Second Link,should show id 2...How i can set Loop Value here??? </h2></span></u></strong></p><p> <div class="clear"></div> </p><p> <!-- Start Pop up Box --></p><p> <div id="offerContainer"> </p><p> <!-- Start offer --></p><p> <div class="picBoxContainer"></p><p> <img src="1.jpg" /></p><p> </div></p><p> <!-- End offer --></p><p> </div></p><p> <!-- End Popup Box --></p><p> </div></p><p> <!-- End Subcribe Box --> </p><p></div></p></blockquote><p></p>
[QUOTE="moreuplink, post: 2233012, member: 322608538"] i have a click pop up and have two links. If i click on first link, it should show first image and if i click on the second link then it should bring up second image but my code is not doing it. here is the code and help will appreciated. I need to create a loop. ============================== <script type="text/javascript"> jQuery(document).ready(function(){ if (document.cookie.indexOf('visited=true') == 1) { var fifteenDays = 1000; var expires = new Date((new Date()).valueOf() + fifteenDays); document.cookie = "visited=true;expires=" + expires.toUTCString(); $.colorbox({width:"auto", inline:true, href:"#subscribe"}); } $(".open_popup").colorbox({width:"730px", inline:true, href:"#subscribe"}); }); </script> </head> <body> <?php $a=1; while($a<=2){ ?> <a href="#" class="open_popup"><?php echo $a++ ?>Click here to open the popup</a> <br /> <?php } ?> <div style="display: none;"> <!-- Start Subcribe Box --> <div id='subscribe' style='padding: 9px; background:#ffffff;'> <h2 class="offerTitle">[B][U][COLOR=#000000]i want to show here id 1 & when i click on Second Link,should show id 2...How i can set Loop Value here??? </h2>[/COLOR][/U][/B] <div class="clear"></div> <!-- Start Pop up Box --> <div id="offerContainer"> <!-- Start offer --> <div class="picBoxContainer"> <img src="1.jpg" /> </div> <!-- End offer --> </div> <!-- End Popup Box --> </div> <!-- End Subcribe Box --> </div> [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Diamond Forums
Need Code Help
Top
Bottom