Tech Reviews, Guides, Articles, and Forums for PC Hardware, Modding, and Gaming Enthusiasts
Fury-Tech Forums

Go Back   Fury-Tech Forums > Software Forums > Graphics, Web Design, CSS & Scripting
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

New to Fury-Tech Forums? Register now for free!

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-11-2008, 12:30 PM
freshtokyo's Avatar
Great Diviner
Great Diviner
 
Join Date: Nov 2003
Location: In Maine
Posts: 1,638
Rep Power: 7
freshtokyo is on a distinguished road
Send a message via AIM to freshtokyo
Default Need some help with js...

Anyone use Javascript? Help a brother out? Payment in High-fives!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-11-2008, 02:59 PM
Technophile's Avatar
Super Moderator
Great Diviner
 
Join Date: Sep 2002
Location: Everywhere
Posts: 3,803
Rep Power: 10
Technophile is on a distinguished road
Send a message via AIM to Technophile Send a message via MSN to Technophile Send a message via Yahoo to Technophile
Default

What's the question?
__________________
Your sig is cooler than mine.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-22-2008, 04:25 PM
freshtokyo's Avatar
Great Diviner
Great Diviner
 
Join Date: Nov 2003
Location: In Maine
Posts: 1,638
Rep Power: 7
freshtokyo is on a distinguished road
Send a message via AIM to freshtokyo
Default

OK, let's try this again (lost my internet connection and lost the entire post last time)

In short,
I've been using this js gallery and it's pretty cool:
Original My Version (I edited very little code, most was only CSS and placement edits)

It does everything I need it to. EXCEPT, I need to be able to make hyperlinks in the caption (which is pulled from the title in the img tag) and it's not allowing me to do that! (see the caption for the first image on my version) let me know if you need anymore information, I have VERY little knowledge with Javascript.

If anyone has any ideas on how to accomplish this I will be more than happy to give you a high-five and a bluray movie viewing on my 47" HDTV (and maybe around of COD 4)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 06-22-2008, 10:54 PM
Tekime's Avatar
Administrator
Great Diviner
 
Join Date: Aug 2002
Location: Maine
Posts: 5,241
Rep Power: 10
Tekime is on a distinguished road
Send a message via AIM to Tekime Send a message via MSN to Tekime Send a message via Yahoo to Tekime
Default

Edit jquery.galleria.js and find the following code (on line 309):
Code:
        _wrapper.siblings('.caption').text(_thumb.attr('title'));
Replace with:
Code:
        _wrapper.siblings('.caption').html(_thumb.attr('title'));
Galleria should now treat the anchor title as HTML instead of plaintext. You could probably sling an image in there or something too, if you so pleased. Just make sure to use single quotes in the title attribute, of course.
__________________
ABIT NF8 | Athlon 64 2800+ | 1GB Corsair XMS PC-3200 | MSI GeForce 6600GT
Directory Script - PHP Scripts - Freelance Forums - Maine Web Designers
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 06-23-2008, 11:56 AM
freshtokyo's Avatar
Great Diviner
Great Diviner
 
Join Date: Nov 2003
Location: In Maine
Posts: 1,638
Rep Power: 7
freshtokyo is on a distinguished road
Send a message via AIM to freshtokyo
Default

Ok so that worked... AWESOMELY thank you!

but...

something strange is happening (i'm 99% sure that the change didn't mess this up) if you go back and check out the page I've cut it down to make it simpler: gallery here is the code for the page in question:
Code:
<div class="demo"><div id="main_image"></div><p class="nav" align="center"><a href="#" onclick="$.galleria.prev(); return false;">&laquo; previous</a> | <a href="#" onclick="$.galleria.next(); return false;">next &raquo;</a></p><ul class="gallery_demo_unstyled"><li class="active"><img src="http://www.shopchantal.com/v/vspfiles/templates/1/images/galleria/demo/img/flowing-rock.jpg" alt="Flowing Rock" title="test <a href=#>test link</a>"></li><li><img src="http://www.shopchantal.com/v/vspfiles/templates/1/images/galleria/demo/img/stones.jpg" alt="Stones"  title="test <a href=#>test link two</a>"></li></ul></p></div>
as you can see from the code, the links are two DIFFERENT names... but when viewing the page the links for BOTH pictures are showing the same title??

I've gone through the original code and I can't see anything different (in the .js page or the original page) but here is the other segments of code that might be effecting it:

Code:
<script type="text/javascript" src="http://www.shopchantal.com/v/vspfiles/templates/1/images/galleria/demo/jquery.min.js"></script>
	<script type="text/javascript" src="http://www.shopchantal.com/v/vspfiles/templates/1/images/galleria/trunk/jquery.galleria.js"></script>
	<script type="text/javascript">
	
	$(document).ready(function(){
		
		$('.gallery_demo_unstyled').addClass('gallery_demo'); // adds new class name to maintain degradability
		
		$('ul.gallery_demo').galleria({
			history   : true, // activates the history object for bookmarking, back-button etc.
			clickNext : true, // helper for making the image clickable
			insert    : '#main_image', // the containing selector for our main image
			onImage   : function(image,caption,thumb) { // let's add some image effects for demonstration purposes
				
				// fade in the image & caption
				image.css('display','none').fadeIn(1000);
				caption.css('display','none').fadeIn(1000);

				
				// fetch the thumbnail container
				var _li = thumb.parents('li');
				
				// fade out inactive thumbnail
				_li.siblings().children('img.selected').fadeTo(500,0.3);
				
				// fade in active thumbnail
				thumb.fadeTo('fast',1).addClass('selected');
				
				// add a title for the clickable image
				image.attr('title','Next image >>');
			},
			onThumb : function(thumb) { // thumbnail effects goes here
				
				// fetch the thumbnail container
				var _li = thumb.parents('li');
				
				// if thumbnail is active, fade all the way.
				var _fadeTo = _li.is('.active') ? '1' : '0.3';
				
				// fade in the thumbnail when finnished loading
				thumb.css({display:'none',opacity:_fadeTo}).fadeIn(1500);
				
				// hover effects
				thumb.hover(
					function() { thumb.fadeTo('fast',1); },
					function() { _li.not('.active').children('img').fadeTo('fast',0.3); } // don't fade out if the parent is active
				)
			}
		});
	});
	
	</script>
	<style media="screen,projection" type="text/css">
	
	/* BEGIN DEMO STYLE */
	*{margin:0;padding:0}
	/*body{padding:0px;background:white;text-align:center;color:#bba;font:80%/140% georgia,serif;}*/
	/*h1,h2{font:bold 80% 'helvetica neue',sans-serif;letter-spacing:3px;text-transform:uppercase;}*/
	/*a{color:#348;text-decoration:none;outline:none;}
	a:hover{color:#67a;}
	.caption{font-style:italic;color:#887;}*/

	.demo{position:relative;margin-top:0em;}
	.gallery_demo{width:702px;margin:0 auto;}
	.gallery_demo li{width:50px;height:50px;}
	.gallery_demo li div{left:240px}
	/*.gallery_demo li div .caption{font:italic 0.7em/1.4 georgia,serif;}*/
	
	#main_image{margin:0 auto 3px auto;height:438px;width:700px;background:black;}
	/*#main_image img{margin-bottom:0px;}*/
	
	.nav{
	padding-top:2px;
	clear:both;
	letter-spacing:3px;
	text-transform:uppercase;
	font-family: 'helvetica neue', sans-serif;
	font-size: 10px;
	padding-bottom: 3px;
}
	
	
    </style>
I think this just needs a fresh set of eyes.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 06-23-2008, 12:20 PM
Tekime's Avatar
Administrator
Great Diviner
 
Join Date: Aug 2002
Location: Maine
Posts: 5,241
Rep Power: 10
Tekime is on a distinguished road
Send a message via AIM to Tekime Send a message via MSN to Tekime Send a message via Yahoo to Tekime
Default

Odd.. there appears to be a random &nbsp; entity in the second link right before the title attribute - maybe that's causing a problem somewhere? It might not hurt to wrap the URLs in single quotes either, e.g. href='#'.

HTML Code:
<img src="http://www.shopchantal.com/v/vspfiles/templates/1/images/galleria/demo/img/stones.jpg" alt="Stones" &nbsp;title="test <a href=#>test link two</a>" />
</ul>
__________________
ABIT NF8 | Athlon 64 2800+ | 1GB Corsair XMS PC-3200 | MSI GeForce 6600GT
Directory Script - PHP Scripts - Freelance Forums - Maine Web Designers
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 06-23-2008, 01:46 PM
freshtokyo's Avatar
Great Diviner
Great Diviner
 
Join Date: Nov 2003
Location: In Maine
Posts: 1,638
Rep Power: 7
freshtokyo is on a distinguished road
Send a message via AIM to freshtokyo
Default

well, one of those fixed it

works perfect now thanks!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 06-23-2008, 04:17 PM
Tekime's Avatar
Administrator
Great Diviner
 
Join Date: Aug 2002
Location: Maine
Posts: 5,241
Rep Power: 10
Tekime is on a distinguished road
Send a message via AIM to Tekime Send a message via MSN to Tekime Send a message via Yahoo to Tekime
Default

Awesome! No prob man.
__________________
ABIT NF8 | Athlon 64 2800+ | 1GB Corsair XMS PC-3200 | MSI GeForce 6600GT
Directory Script - PHP Scripts - Freelance Forums - Maine Web Designers
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Viewing
Go Back   Fury-Tech Forums > Software Forums > Graphics, Web Design, CSS & Scripting


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -5. The time now is 10:57 PM.


PHP Scripts
BidVerve Directory
PageRank Script
SEO Scripts
37 SEO Scripts
List Cleaner Script
Keyword Cleaner
Directory Script
Directory Script

Directories
BidVerve Directory
BidVerve Directory
Nerve Directories
Nerve Directories
Directory Grow
Directory Grow

Our Supporters
entertainment sites
online casino

Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0 ©2007, Crawlability, Inc.